Skip to content

Commit

Permalink
https://github.com/microsoft/onnxscript/blob/854b5d958ed8de629d5e273c…
Browse files Browse the repository at this point in the history
…e1f3ad11358331d1/onnxscript/function_libs/torch_lib/ops/core.py#L8086-L8088
  • Loading branch information
justinchuby authored Jan 2, 2025
1 parent 854b5d9 commit dbe67e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnxscript/function_libs/torch_lib/ops/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -8085,7 +8085,7 @@ def aten_swapdims(self: TensorType, dim0: int, dim1: int) -> TensorType:
@torch_op("aten::sym_size.int", trace_only=True)
def aten_sym_size(self: TensorType, dim: int = 0) -> INT64:
"""sym_size.int(Tensor self, int dim) -> SymInt"""
return op.Shape(self, end=dim + 1, start=dim)
return op.Squeeze(op.Shape(self, end=dim + 1, start=dim))

Check warning on line 8088 in onnxscript/function_libs/torch_lib/ops/core.py

View check run for this annotation

Codecov / codecov/patch

onnxscript/function_libs/torch_lib/ops/core.py#L8088

Added line #L8088 was not covered by tests


def aten_symeig(
Expand Down

0 comments on commit dbe67e8

Please sign in to comment.