Skip to content

Commit d1845ce

Browse files
authored
Merge branch 'master' into dpnp_dot
2 parents efc5f04 + a75e599 commit d1845ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dpnp/dpnp_iface_mathematical.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,8 @@ def clip(a, a_min, a_max, *, out=None, order="K", **kwargs):
491491

492492
if kwargs:
493493
raise NotImplementedError(f"kwargs={kwargs} is currently not supported")
494+
elif a_min is None and a_max is None:
495+
raise ValueError("One of max or min must be given")
494496

495497
if order is None:
496498
order = "K"

0 commit comments

Comments
 (0)