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
# NOT RUN { uo = torch$ones(3L, 5L) # it is a 3x5 tensor dim(uo) # } # NOT RUN { # }
Run the code above in your browser using DataLab