CopysignΒΆ
Create a new floating-point tensor with the magnitude of input and the sign of other.
Abstract Signature:
Copysign(input: Tensor, other: Tensor)
Keras
API:
keras.ops.multiplyStrategy: Macro 'keras.ops.multiply(keras.ops.abs({input}), keras.ops.sign({other}))'
TensorFlow
API:
tf.math.multiplyStrategy: Macro 'tf.math.multiply(tf.math.abs({input}), tf.math.sign({other}))'
Apple MLX
API:
mlx.core.multiplyStrategy: Macro 'mlx.core.abs({input}) * mlx.core.sign({other})'