diff --git a/tutorials/torch_example.py b/tutorials/torch_example.py index 8dc6d5fe..d6ceb16d 100755 --- a/tutorials/torch_example.py +++ b/tutorials/torch_example.py @@ -347,7 +347,7 @@ def ind_loss(params: Dict[str, Union[int, float, str]]) -> float: # Set up separate logger for Propulate optimization. set_logger_config( level=logging.INFO, # Logging level - log_file=f"./{pathlib.Path(__file__).stem}.log", # Logging path + log_file=f"{log_path}/{pathlib.Path(__file__).stem}.log", # Logging path log_to_stdout=True, # Print log on stdout. log_rank=False, # Do not prepend MPI rank to logging messages. colors=True, # Use colors.