mindspore.Tensor.unsqueeze

Tensor.unsqueeze(dim)[source]

For details, please refer to mindspore.ops.unsqueeze().