Skip to content

Commit b445cef

Browse files
committed
Logging path to saved outputs
1 parent 3e41e15 commit b445cef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/thunder/utils/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import json
2+
import logging
23
import numpy as np
34
import os
45
import random
@@ -172,8 +173,10 @@ def save_outputs(res_folder: str, outputs: dict) -> None:
172173
:param res_folder: path where to save outputs.
173174
:param outputs: dictionary of outputs.
174175
"""
175-
with open(os.path.join(res_folder, "outputs.json"), "w") as outfile:
176+
output_filename = os.path.join(res_folder, "outputs.json")
177+
with open(output_filename, "w") as outfile:
176178
json.dump(outputs, outfile)
179+
logging.info(f"Outputs saved at {output_filename}")
177180

178181

179182
def set_seed(seed: int) -> None:

0 commit comments

Comments
 (0)