Skip to content

Commit

Permalink
Properly interpolate sloc here (pytorch#137088)
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Z. Yang <ezyang@meta.com>
Pull Request resolved: pytorch#137088
Approved by: https://github.com/Skylion007
  • Loading branch information
ezyang authored and pytorchmergebot committed Oct 1, 2024
1 parent c2dee8e commit d61e452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/fx/experimental/symbolic_shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5494,7 +5494,7 @@ def _make_data_dependent_error(
f"{desc} {expr} (unhinted: {unhinted_expr}). "
f"(Size-like symbols: {', '.join(map(str, size_like_symbols)) or 'none'})\n\n"
f"{size_oblivious_result_msg}"
"Caused by: {sloc}\n"
f"Caused by: {sloc}\n"
'For more information, run with TORCH_LOGS="dynamic"\n'
"For extended logs when we create symbols, also add "
f"TORCHDYNAMO_EXTENDED_DEBUG_CREATE_SYMBOL=\"{','.join(map(str, expr.free_symbols))}\"\n"
Expand Down

0 comments on commit d61e452

Please sign in to comment.