IsNonDecreasingΒΆ

Returns True if x is non-decreasing.

Abstract Signature:

IsNonDecreasing(x: Tensor)

PyTorch

API: β€”
Strategy: Macro 'torch.all({x}[1:] >= {x}[:-1])'

JAX (Core)

API: β€”
Strategy: Macro 'jnp.all({x}[1:] >= {x}[:-1])'

Keras

API: β€”
Strategy: Macro 'keras.ops.all({x}[1:] >= {x}[:-1])'

TensorFlow

API: tf.math.is_non_decreasing
Strategy: Direct Mapping

Apple MLX

API: β€”
Strategy: Macro 'mx.all({x}[1:] >= {x}[:-1])'

Flax NNX

API: β€”
Strategy: Macro 'jnp.all({x}[1:] >= {x}[:-1])'

PaxML / Praxis

API: β€”
Strategy: Macro 'jnp.all({x}[1:] >= {x}[:-1])'