We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0851f0f commit 576baacCopy full SHA for 576baac
1 file changed
onnxscript/function_libs/torch_lib/ops/core.py
@@ -3026,10 +3026,10 @@ def aten_imag(self: TensorType) -> TensorType:
3026
raise NotImplementedError()
3027
3028
3029
-def aten_index(self: TensorType, indices: Optional[Sequence[TensorType]]) -> TensorType:
+def aten_index(self: TTensor, indices: Sequence[INT64]) -> TTensor:
3030
"""index.Tensor(Tensor self, Tensor?[] indices) -> Tensor"""
3031
3032
- raise NotImplementedError()
+ return op.Gather(self, indices)
3033
3034
3035
def aten_index_add(
0 commit comments