ThresholdΒΆ

In-place version of Threshold.

Abstract Signature:

Threshold_(input: Tensor, threshold: float, value: float)

PyTorch

API: torch.threshold_
Strategy: Direct Mapping

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})'