compilade commited on
Commit
440390d
·
1 Parent(s): 63aa630

Log the results at the end too

Browse files
Files changed (1) hide show
  1. bench-TriLMs.py +4 -1
bench-TriLMs.py CHANGED
@@ -208,5 +208,8 @@ if __name__ == "__main__":
208
  "mulmat_perf": mulmat_perf,
209
  "results": results,
210
  }
 
 
211
  with open(args.out, "w") as f:
212
- json.dump(results, f, indent=4)
 
 
208
  "mulmat_perf": mulmat_perf,
209
  "results": results,
210
  }
211
+ logger.info("Writing output to: %s", args.out)
212
+ logger.debug("Final results: %s", json.dumps(final_result, indent=4))
213
  with open(args.out, "w") as f:
214
+ json.dump(final_result, f, indent=4)
215
+ f.flush()