Squeeze
Returns a tensor with all the dimensions of input of size 1 removed.
Abstract Signature:
Squeeze(input: Tensor, dim: Optional[Union[int, List[int]]])
PyTorch
API: torch.squeeze
Strategy: Direct Mapping
JAX (Core)
API: jax.numpy.squeeze
Strategy: Direct Mapping
NumPy
API: numpy.squeeze
Strategy: Direct Mapping
Keras
API: keras.ops.squeeze
Strategy: Direct Mapping
TensorFlow
API: tf.squeeze
Strategy: Direct Mapping
Apple MLX
API: mlx.core.squeeze
Strategy: Direct Mapping
Flax NNX
API: jax.numpy.squeeze
Strategy: Direct Mapping
PaxML / Praxis
API: jax.numpy.squeeze
Strategy: Direct Mapping