8000 Update · pytorch/pytorch@c00817f · GitHub
[go: up one dir, main page]

Skip to content

Commit c00817f

Browse files
committed
Update
[ghstack-poisoned]
1 parent 1309acc commit c00817f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torch/_prims_common/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,10 +609,10 @@ def should_swap(idx_a, idx_b):
609609

610610
# when stride_a = 1, we want stride_a < stride_b to be TRUE
611611
# when stride_b = 1, we want stride_a < stride_b to be FALSE
612-
if guard_or_false(stride_a == 1):
612+
elif guard_or_false(stride_a == 1):
613613
return -1
614614

615-
if guard_or_false(stride_b == 1):
615+
elif guard_or_false(stride_b == 1):
616616
return 1
617617

618618
if guard_size_oblivious(stride_a < stride_b):

0 commit comments

Comments
 (0)
0