Skip to content

Commit

Permalink
fix: remove assertion from torch.clamp frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Armstrong committed Sep 1, 2024
1 parent be04593 commit 9201b7d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ivy/functional/frontends/torch/pointwise_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,6 @@ def ceil(input, *, out=None):
@with_unsupported_dtypes({"2.2 and below": ("float16", "complex")}, "torch")
@to_ivy_arrays_and_back
def clamp(input, min=None, max=None, *, out=None):
ivy.utils.assertions.check_all_or_any_fn(
min,
max,
fn=ivy.exists,
type="any",
limit=[1, 2],
message="at most one of min or max can be None",
)
if min is None:
return ivy.minimum(input, max, out=out)
if max is None:
Expand Down

0 comments on commit 9201b7d

Please sign in to comment.