Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion torchbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,8 @@ def main():
output_csv(output_filename, [], [device, name, 0.0])
print_summary(output_filename)
else:
os.path.exists(output_filename) and os.unlink(output_filename)
if output_filename and os.path.exists(output_filename):
os.unlink(output_filename)
for device, name, model, example_inputs in iter_models(args):
torchdynamo.reset()
gc.collect()
Expand Down