(self, obj)
| 309 | } |
| 310 | class JSONEncoder(json.JSONEncoder): |
| 311 | def default(self, obj): |
| 312 | if isinstance(obj, np.int64): |
| 313 | return int(obj) |
| 314 | return super(JSONEncoder, self).default(obj) |
| 315 | with open(os.path.join(args.save_dir, "results.json"), "w") as jf: |
| 316 | json.dump(output_dict, jf, cls=JSONEncoder) |
| 317 |
nothing calls this directly
no outgoing calls
no test coverage detected