mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 00:20:18 +01:00
add new line in log (#164240)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/164240 Approved by: https://github.com/ColinPeppler, https://github.com/Skylion007, https://github.com/ezyang ghstack dependencies: #164075
This commit is contained in:
parent
5cdbcb5233
commit
14102fb1f3
|
|
@ -6612,13 +6612,13 @@ class ShapeEnv:
|
|||
desc = "Could not guard on data-dependent expression"
|
||||
size_oblivious_result_msg = (
|
||||
"consider using data-dependent friendly APIs such as "
|
||||
"guard_or_false, guard_or_true and statically_known_true"
|
||||
"guard_or_false, guard_or_true and statically_known_true."
|
||||
)
|
||||
|
||||
msg = (
|
||||
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}"
|
||||
f"{size_oblivious_result_msg}\n"
|
||||
f"Caused by: {sloc}\n"
|
||||
'For more information, run with TORCH_LOGS="dynamic"\n'
|
||||
"For extended logs when we create symbols, also add "
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user