Skip to content

Commit 99e13e6

Browse files
Jake VanderPlascopybara-github
authored andcommitted
jax.numpy.clip: update use of deprecated arguments.
- a is now positional-only - a_min is now min - a_max is now max The old argument names have been deprecated since JAX v0.4.27. PiperOrigin-RevId: 714268837
1 parent 5c3470a commit 99e13e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flow_field.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ def fmax(x, v=0.0):
144144
out[nonzero_indices] = xcorr[nonzero_indices] / denom[nonzero_indices]
145145

146146
if use_jax:
147-
out = jnp.clip(out, a_min=-1, a_max=1)
147+
out = jnp.clip(out, min=-1, max=1)
148148
else:
149-
np.clip(out, a_min=-1, a_max=1, out=out)
149+
np.clip(out, min=-1, max=1, out=out)
150150

151151
px_threshold = 0.3 * xnp.max(overlap_masked_px, keepdims=True)
152152
if use_jax:

0 commit comments

Comments
 (0)