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