sponge.function.squeeze_first_dim

View Source On Gitee
sponge.function.squeeze_first_dim(input_x: Tensor)[source]

Return the Tensor after deleting the dimension of size 1 from the first axis (axis=0).

Parameters

input_x (Tensor) – The shape of tensor is (x1,x2,...,xR).

Returns

Tensor, the shape of tensor is (x2,...,xR).

Supported Platforms:

Ascend GPU CPU