Skip to content

Commit 18d7bab

Browse files
committed
[Tutorial] Fix wrong config name
1 parent 008cf4c commit 18d7bab

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

PyTorchSimFrontend/extension_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def __getattr__(name):
103103
if name == "CONFIG_TORCHSIM_DUMP_PATH":
104104
return os.environ.get('TORCHSIM_DUMP_PATH', default = CONFIG_TORCHSIM_DIR)
105105
if name == "CONFIG_TORCHSIM_LOG_PATH":
106-
return os.environ.get('TORCHSIM_DUMP_LOG_PATH', default = os.path.join(CONFIG_TORCHSIM_DIR, "togsim_results"))
106+
return os.environ.get('TORCHSIM_LOG_PATH', default = os.path.join(CONFIG_TORCHSIM_DIR, "togsim_results"))
107107

108108
if name == "CONFIG_TOGSIM_EAGER_MODE":
109109
return int(os.environ.get("TOGSIM_EAGER_MODE", default=False))

tutorial/session1/LogAnalysis.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"base_dir = os.environ.get('TORCHSIM_DIR', default='/workspace/PyTorchSim')\n",
2020
"sys.path.append(base_dir)\n",
2121
"os.environ['TOGSIM_CONFIG']=f\"{base_dir}/tutorial/session1/togsim_configs/togsim_config_timing_only.yml\"\n",
22-
"os.environ['TORCHSIM_DUMP_LOG_PATH']=os.path.join(os.getcwd(), \"togsim_results\")"
22+
"os.environ['TORCHSIM_LOG_PATH']=os.path.join(os.getcwd(), \"togsim_results\")"
2323
]
2424
},
2525
{

tutorial/session2/Hands_on.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"import torch._dynamo\n",
3333
"import torch.utils.cpp_extension\n",
3434
"base_dir = os.environ.get('TORCHSIM_DIR', default='/workspace/PyTorchSim')\n",
35+
"os.environ['TORCHSIM_DUMP_PATH']=os.path.join(os.getcwd(), \"togsim_results\")\n",
3536
"sys.path.append(base_dir)\n",
3637
"\n",
3738
"from Scheduler.scheduler import PyTorchSimRunner\n",

0 commit comments

Comments
 (0)