Tensor
[number] nDimension()
Returns the number of dimensions in a Tensor.
> x = torch.Tensor(4,5) -- a matrix > = x:nDimension() 2