Skip to content

Commit 576baac

Browse files
committed
wip
1 parent 0851f0f commit 576baac

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

onnxscript/function_libs/torch_lib/ops/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3026,10 +3026,10 @@ def aten_imag(self: TensorType) -> TensorType:
30263026
raise NotImplementedError()
30273027

30283028

3029-
def aten_index(self: TensorType, indices: Optional[Sequence[TensorType]]) -> TensorType:
3029+
def aten_index(self: TTensor, indices: Sequence[INT64]) -> TTensor:
30303030
"""index.Tensor(Tensor self, Tensor?[] indices) -> Tensor"""
30313031

3032-
raise NotImplementedError()
3032+
return op.Gather(self, indices)
30333033

30343034

30353035
def aten_index_add(

0 commit comments

Comments
 (0)