AddcmulΒΆ
Performs the element-wise multiplication of tensor1 by tensor2, multiplies the result by the scalar value and adds it to input.
Abstract Signature:
Addcmul(input: Tensor, tensor1: Tensor, tensor2: Tensor, value: float = 1.0)
JAX (Core)
API:
βStrategy: Macro 'jnp.add({input}, {value} * jnp.multiply({tensor1}, {tensor2}))'
NumPy
API:
βStrategy: Macro '{input} + {value} * {tensor1} * {tensor2}'
Keras
API:
βStrategy: Macro 'keras.ops.add({input}, keras.ops.multiply({tensor1}, {tensor2}) * {value})'
TensorFlow
API:
βStrategy: Macro 'tf.math.add({input}, tf.math.multiply({tensor1}, {tensor2}) * {value})'
Apple MLX
API:
βStrategy: Macro 'mx.add({input}, mx.multiply({tensor1}, {tensor2}) * {value})'
Flax NNX
API:
βStrategy: Macro 'jnp.add({input}, {value} * jnp.multiply({tensor1}, {tensor2}))'
PaxML / Praxis
API:
βStrategy: Macro 'jnp.add({input}, {value} * jnp.multiply({tensor1}, {tensor2}))'