Skip to content

Commit e8a0d1a

Browse files
committed
Use torch.utils.collect_env in run_experiments.py
1 parent b04acf8 commit e8a0d1a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

run_experiments.py

Lines changed: 5 additions & 0 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, stderr=f, check=True
106+
)
107+
103108
radon_commands = (
104109
(
105110
"radon",

0 commit comments

Comments
 (0)