Skip to content

Commit 90c3d02

Browse files
committed
index_bool is wrong
Signed-off-by: Justin Chu <[email protected]>
1 parent 8515502 commit 90c3d02

File tree

1 file changed

+3
-3
lines changed
  • onnxscript/function_libs/torch_lib/ops

1 file changed

+3
-3
lines changed

onnxscript/function_libs/torch_lib/ops/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4201,9 +4201,9 @@ def _aten_index_bool(self: TensorType, indices: Sequence[Optional[BOOL]]) -> Ten
42014201
finla_rank = input_rank - (len(index.shape) - 1)
42024202
trans_perm = list(range(finla_rank))
42034203
trans_perm = trans_perm[-1:] + trans_perm[:-1]
4204-
for _ in range(count_of_none):
4205-
result = op.Transpose(result, perm=trans_perm)
4206-
return result
4204+
for _ in range(count_of_none):
4205+
result = op.Transpose(result, perm=trans_perm)
4206+
return result
42074207

42084208

42094209
def aten_index_add(

0 commit comments

Comments
 (0)