Skip to content

Commit d0a1ba1

Browse files
fzimmermann89facebook-github-bot
authored andcommitted
Tighten type hints for tensor arithmetic
Summary: Fixes pytorch/pytorch#124015 cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang aakhundov X-link: pytorch/pytorch#135392 Differential Revision: D65753120 Pulled By: ezyang
1 parent 7fcd0af commit d0a1ba1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

devtools/inspector/_inspector_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ def verify_debug_data_equivalence(
218218

219219
if isinstance(output_a, torch.Tensor):
220220
assert bool(
221+
# pyre-fixme[6]: For 1st argument expected `Tensor` but got `bool`.
221222
torch.all(output_a == output_b)
222223
), "Tensors Debug Data is different. Expected to be equal."
223224
else:

0 commit comments

Comments
 (0)