Skip to content

Commit

Permalink
Update error message with torch logging instructions (#102892)
Browse files Browse the repository at this point in the history
#100109

Pull Request resolved: #102892
Approved by: https://github.com/yanboliang
  • Loading branch information
mlazos authored and pytorchmergebot committed Jun 9, 2023
1 parent d0c0e13 commit 40dbbca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/_dynamo/exc.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def augment_exc_message(exc, msg="\n"):
torch._dynamo.replay('{exc.record_filename}').\n"

if not config.verbose and hasattr(exc, "real_stack"):
msg += "\nSet torch._dynamo.config.verbose=True or TORCHDYNAMO_VERBOSE=1 for more information\n"
msg += '\nSet TORCH_LOGS="+dynamo" and TORCHDYNAMO_VERBOSE=1 for more information\n'

if hasattr(exc, "inner_exception") and hasattr(
exc.inner_exception, "minifier_path"
Expand Down

0 comments on commit 40dbbca

Please sign in to comment.