torch.atleast_3d
- torch.atleast_3d(*tensors)
Returns a 3-dimensional view of each input tensor with zero dimensions. Input tensors with three or more dimensions are returned as-is.
- Parameters:
input (Tensor or sequence of Tensors) – tensor(s) to be converted to at least 3-dimensional.
- Returns