AGENTS.md@src/gnn/execute/pytorch · git:20260922.c9be8be · 2026-09-22 · sha256 06d86474308818f6
AGENTS.md@src/gnn/execute/pytorch git:20260922.c9be8beA
Immutable. This exact content never changes and is served at /api/v1/blob/06d86474308818f6.
# PyTorch Execution Sub-module ## Overview Discovers and runs PyTorch-generated POMDP scripts via subprocess. Includes syntax validation, dependency checking, log persistence, and execution timing. ## Architecture ``` pytorch/ ├── __init__.py # Package exports └── pytorch_runner.py # PyTorch script discovery and execution (239 lines) ``` ## Key Functions - **`run_pytorch_scripts(render_dir, output_dir)`** — Discovers and executes all PyTorch scripts in the render output directory. - **Dependency validation** — Checks for `torch` availability before execution. - **Syntax checking** — Pre-validates Python syntax before subprocess execution. - **Log persistence** — Captures stdout/stderr to log files alongside results. - **Timing** — Records wall-clock execution time for each script. ## Dependencies - `torch` (runtime, checked before execution) ## Parent Module See [execute/AGENTS.md](../AGENTS.md) for the overall execution architecture. **Version**: [pyproject.toml](../../../../pyproject.toml) (canonical)