Skip to content
Snippets Groups Projects
Unverified Commit 6757f905 authored by Andrés Marafioti's avatar Andrés Marafioti Committed by GitHub
Browse files

Apply suggestions from code review

parent 45aaf1aa
No related branches found
No related tags found
No related merge requests found
......@@ -85,8 +85,10 @@ def parse_arguments():
)
if len(sys.argv) == 2 and sys.argv[1].endswith(".json"):
# Parse configurations from a JSON file if specified
return parser.parse_json_file(json_file=os.path.abspath(sys.argv[1]))
else:
# Parse arguments from command line if no JSON file is provided
return parser.parse_args_into_dataclasses()
......@@ -98,6 +100,7 @@ def setup_logger(log_level):
)
logger = logging.getLogger(__name__)
# torch compile logs
if log_level == "debug":
torch._logging.set_logs(graph_breaks=True, recompiles=True, cudagraphs=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment