Log2 ==== Computes the base-2 logarithm element-wise. **Abstract Signature:** ``Log2(input: Tensor)`` .. raw:: html

PyTorch

API: torch.log2
Strategy: Direct Mapping

JAX (Core)

API: jax.numpy.log2
Strategy: Direct Mapping

NumPy

API: numpy.log2
Strategy: Direct Mapping

Keras

API: keras.ops.numpy.log2
Strategy: Macro 'keras.ops.divide(keras.ops.log({input}), keras.ops.log(2.0))'

TensorFlow

API: tf.experimental.numpy.log2
Strategy: Direct Mapping

Apple MLX

API: mlx.core.log2
Strategy: Direct Mapping

Flax NNX

API: jax.numpy.log2
Strategy: Direct Mapping

PaxML / Praxis

API: jax.numpy.log2
Strategy: Direct Mapping