Skip to content

Commit

Permalink
Update test/test_meta.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ngimel committed Dec 7, 2022
1 parent 281552a commit 6519637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def test_assert(cond, msg):
if should_check_strides(func) == CheckStrides.ALL:
same_strides, _ = torch._prims_common.check_all_strides(meta_r, r)
test_assert(same_strides, f"but real stride was {r.stride()}")
if should_check_strides(func) == CheckStrides.SIGNIFICANT:
elif should_check_strides(func) == CheckStrides.SIGNIFICANT:
same_strides, _ = torch._prims_common.check_significant_strides(meta_r, r)
test_assert(same_strides, f"but real stride was {r.stride()}")
test_assert(
Expand Down

0 comments on commit 6519637

Please sign in to comment.