Skip to content

Commit

Permalink
sym_size
Browse files Browse the repository at this point in the history
  • Loading branch information
justinchuby committed Jul 22, 2024
1 parent 8e5e459 commit e776b25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onnxscript/function_libs/torch_lib/ops/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -8099,8 +8099,8 @@ def aten_swapdims(self: TensorType, dim0: int, dim1: int) -> TensorType:


@torch_op("aten::sym_size.int", trace_only=True)
def aten_sym_size(self: TReal, dim: int = 0) -> TReal:
"""sym_size(Tensor self, int dim) -> Tensor"""
def aten_sym_size(self: TensorType, dim: int = 0) -> INT64:
"""sym_size.int(Tensor self, int dim) -> SymInt"""
shape = op.Shape(self, start=dim, end=dim + 1)
return op.Slice(shape, [dim], [dim + 1])

Expand Down

0 comments on commit e776b25

Please sign in to comment.