powered by
Get the dimensions of a tensor displaying it as a vector.
# S3 method for torch.Tensor dim(x)
tensor
a vector of integers with the dimensions of the tensor