Skip to content

Commit

Permalink
Register clamp
Browse files Browse the repository at this point in the history
  • Loading branch information
justinchuby committed Jul 30, 2024
1 parent 19f1126 commit ab35082
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 @@ -1660,7 +1660,7 @@ def aten_clamp(self: TReal, min: Optional[TReal] = None, max: Optional[TReal] =
return clamped


@torch_op("aten::clamp_max", traceable=True)
@torch_op(("aten::clamp_max", "aten::clamp_max.Tensor"), traceable=True)
def aten_clamp_max(self: TReal, max_: TReal) -> TReal:
"""clamp_max(Tensor self, Tensor max) -> Tensor"""

Expand All @@ -1679,7 +1679,7 @@ def aten_clamp_max(self: TReal, max_: TReal) -> TReal:
return result


@torch_op("aten::clamp_min", traceable=True)
@torch_op(("aten::clamp_min", "aten::clamp_min.Tensor"), traceable=True)
def aten_clamp_min(self: TReal, min_: TReal) -> TReal:
"""clamp_min(Tensor self, Tensor min) -> Tensor"""

Expand Down

0 comments on commit ab35082

Please sign in to comment.