PyTorch
API: torch.rsub
Strategy: Direct Mapping
JAX (Core)
API: —
Strategy: Macro '{other} - ({input} * {alpha})'
NumPy
API: —
Strategy: Macro 'numpy.subtract({other}, {input} * {alpha})'
Keras
API: —
Strategy: Macro 'keras.ops.subtract({other}, {input} * {alpha})'
TensorFlow
API: —
Strategy: Macro 'tf.math.subtract({other}, {input} * {alpha})'
Apple MLX
API: —
Strategy: Macro 'mlx.core.subtract({other}, {input} * {alpha})'
Flax NNX
API: —
Strategy: Macro '{other} - ({input} * {alpha})'
PaxML / Praxis
API: —
Strategy: Macro '{other} - ({input} * {alpha})'