Returns an LongStorage
containing the size of each dimension
of the tensor. Equivalent to #
.
> x = torch.Tensor(4,5):zero() > print(x) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 [torch.Tensor of dimension 4x5] > return x:size() 4 5 [torch.LongStorage of size 2]