sponge.function.squeeze_penulti
- sponge.function.squeeze_penulti(input_x: Tensor)[source]
Return the Tensor after deleting the dimension of size 1 from the penultimate axis (axis=-2).
- Parameters
input_x (Tensor) – The shape of tensor is \((x_1, x_2, ..., x_{R-1}, x_R)\).
- Returns
Tensor, the shape of tensor is \((x_1, x_2, ..., x_R)\).
- Supported Platforms:
Ascend
GPU
CPU