8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1309acc commit c00817fCopy full SHA for c00817f
torch/_prims_common/__init__.py
@@ -609,10 +609,10 @@ def should_swap(idx_a, idx_b):
609
610
# when stride_a = 1, we want stride_a < stride_b to be TRUE
611
# when stride_b = 1, we want stride_a < stride_b to be FALSE
612
- if guard_or_false(stride_a == 1):
+ elif guard_or_false(stride_a == 1):
613
return -1
614
615
- if guard_or_false(stride_b == 1):
+ elif guard_or_false(stride_b == 1):
616
return 1
617
618
if guard_size_oblivious(stride_a < stride_b):
0 commit comments