Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Commit dc15dfb

Browse files
committed
Dispatch Clip using jnp.clip
1 parent a24d46b commit dc15dfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aesara/link/jax/dispatch/scalar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def identity(x):
5555

5656
@jax_funcify.register(Clip)
5757
def jax_funcify_Clip(op, **kwargs):
58-
def clip(x, min, max):
59-
return jnp.where(x < min, min, jnp.where(x > max, max, x))
58+
def clip(x, a_min, a_max):
59+
return jnp.clip(x, a_min, a_max)
6060

6161
return clip
6262

0 commit comments

Comments
 (0)