Skip to content

Commit f90cf2d

Browse files
authored
Tighten type hints for tensor arithmetic
Differential Revision: D65753120 Pull Request resolved: #6752
1 parent 576e96c commit f90cf2d

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)