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