Skip to content

Commit

Permalink
[torchlib] Make matmul trace_only (#2055)
Browse files Browse the repository at this point in the history
Somehow it was left behind
  • Loading branch information
justinchuby authored Feb 12, 2025
1 parent 456f0ec commit 89d9707
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions onnxscript/function_libs/torch_lib/ops/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2818,7 +2818,7 @@ def aten_div_mode_int(self: TInt, other: TInt, rounding_mode: str) -> TInt:
return op.CastLike(result, self)


@torch_op("aten::dot")
@torch_op("aten::dot", trace_only=True)
def aten_dot(self: TFloat, tensor: TFloat) -> TFloat:
"""dot(Tensor self, Tensor tensor) -> Tensor"""

Expand Down Expand Up @@ -5114,7 +5114,7 @@ def aten_masked_select_backward(
raise NotImplementedError()


@torch_op("aten::matmul")
@torch_op("aten::matmul", trace_only=True)
def aten_matmul(
self: TRealUnlessInt16OrInt8, other: TRealUnlessInt16OrInt8
) -> TRealUnlessInt16OrInt8:
Expand Down Expand Up @@ -5670,7 +5670,7 @@ def aten_multiply(self: TensorType, other: TensorType) -> TensorType:
raise NotImplementedError()


@torch_op("aten::mv")
@torch_op("aten::mv", trace_only=True)
def aten_mv(self: TensorType, vec: TensorType) -> TensorType:
"""mv(Tensor self, Tensor vec) -> Tensor"""

Expand Down

0 comments on commit 89d9707

Please sign in to comment.