Rsub ==== Subtracts input from other (other - input) scaling input by alpha. **Abstract Signature:** ``Rsub(input: Tensor, other: Tensor, alpha: float = 1)`` .. raw:: html

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