ThresholdΒΆ

Auto-discovered via Consensus (Score: 2.0)

Abstract Signature:

Threshold(threshold)

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

Keras

API: keras.activations.threshold
Strategy: Macro 'keras.ops.where({input} > {threshold}, {input}, {value})'

TensorFlow

API: β€”
Strategy: Macro 'tf.where({input} > {threshold}, {input}, {value})'

Apple MLX

API: mlx.nn.layers.activations.Step.threshold
Strategy: Macro 'mlx.core.where({input} > {threshold}, {input}, {value})'

Flax NNX

API: nnx.training.metrics.Accuracy.threshold
Strategy: Direct Mapping