Skip to content

Commit 6105a41

Browse files
committed
Use torch.utils.collect_env in run_experiments.py
1 parent 7f9310d commit 6105a41

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

run_experiments.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ def _benchmark_ops(ops, *args, **kwargs):
100100
random.seed(0)
101101
torch.manual_seed(0)
102102

103+
with open("torch.utils.collect_env.log", "w") as f:
104+
subprocess.run(
105+
("python", "-m", "torch.utils.collect_env"), stdout=f, check=True
106+
)
107+
103108
radon_commands = (
104109
(
105110
"radon",
@@ -184,6 +189,4 @@ def _benchmark_ops(ops, *args, **kwargs):
184189
)
185190

186191
with open("performance_evaluation.tex", "w") as f:
187-
subprocess.run(
188-
("python", "evaluate_performance.py"), stdout=f, check=True
189-
)
192+
subprocess.run(("python", "evaluate_performance.py"), stdout=f, check=True)

0 commit comments

Comments
 (0)