Log the results at the end too
Browse files- 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(
|
|
|
|
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()
|