jax.Array.clip

Contents

jax.Array.clip#

abstract Array.clip(min=None, max=None)[source]#

Return an array whose values are limited to a specified range.

Refer to jax.numpy.clip() for full documentation.

Parameters:
  • self (Array)

  • min (ArrayLike | None)

  • max (ArrayLike | None)

Return type:

Array