ShapeΒΆ

Constructs a shape tuple equivalent to torch.Size.

Abstract Signature:

Shape(iterable = ())

PyTorch

API: torch.Size
Strategy: Direct Mapping

JAX (Core)

API: β€”
Strategy: Macro 'tuple({iterable})'

NumPy

API: numpy.ma.core.shape
Strategy: Macro 'tuple({iterable})'

Keras

API: keras.ops.shape
Strategy: Macro 'tuple({iterable})'

TensorFlow

API: tf.shape
Strategy: Macro 'tuple({iterable})'

Apple MLX

API: mlx.core.array.shape
Strategy: Macro 'tuple({iterable})'

Flax NNX

API: nnx.variablelib.Variable.shape
Strategy: Macro 'tuple({iterable})'

PaxML / Praxis

API: β€”
Strategy: Macro 'tuple({iterable})'