ThresholdΒΆ
In-place version of Threshold.
Abstract Signature:
Threshold_(input: Tensor, threshold: float, value: float)
JAX (Core)
API:
βStrategy: Macro 'jax.numpy.where({input} > {threshold}, {input}, {value})'
NumPy
API:
βStrategy: Macro 'numpy.where({input} > {threshold}, {input}, {value})'
Apple MLX
API:
βStrategy: Macro 'mlx.core.where({input} > {threshold}, {input}, {value})'