Skip to content

Commit f1d8113

Browse files
ezyangpytorchmergebot
authored andcommitted
Print output type if assert fires (#110534)
Signed-off-by: Edward Z. Yang <ezyang@meta.com> Pull Request resolved: #110534 Approved by: https://github.com/albanD
1 parent f3aba45 commit f1d8113

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

torch/_inductor/ir.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3985,7 +3985,9 @@ def generate_output(output, indices):
39853985
elif isinstance(output, int):
39863986
return output
39873987
else:
3988-
assert output is None, "FallbackKernel output type is not supported"
3988+
assert (
3989+
output is None
3990+
), f"FallbackKernel output type {type(output)} is not supported"
39893991
return None
39903992

39913993
outputs = generate_output(example_output, [])

0 commit comments

Comments
 (0)