expand_dims =========== Expands the shape of an array by inserting a new axis (dimension) of size one at the position specified by ``axis``. **Abstract Signature:** ``expand_dims(x: array, axis: int)`` .. raw:: html

JAX (Core)

API: jax.numpy.expand_dims
Strategy: Direct Mapping

NumPy

API: numpy.expand_dims
Strategy: Direct Mapping

Keras

API: keras.ops.numpy.expand_dims
Strategy: Direct Mapping

TensorFlow

API: tf.expand_dims
Strategy: Direct Mapping

Apple MLX

API: mlx.core.expand_dims
Strategy: Direct Mapping

Flax NNX

API: jax.numpy.expand_dims
Strategy: Direct Mapping