Skip to content

Commit

Permalink
Fix lint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
ysiraichi committed Sep 17, 2024
1 parent dfc32cf commit ca02543
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -2791,7 +2791,8 @@ def test_consistent_strides(self):
def stride_is_contiguous(tensor):
# Order the sizes and strides tuple list in ascending stride order, so that the
# first element corresponds to the smallest stride.
sizes_and_strides = list(sorted(zip(tensor.shape, tensor.stride()), key=lambda t: t[1]))
sizes_and_strides = list(
sorted(zip(tensor.shape, tensor.stride()), key=lambda t: t[1]))

# A contiguous tensor's smallest stride should be 1.
if sizes_and_strides[0][1] != 1:
Expand Down

0 comments on commit ca02543

Please sign in to comment.