megengine.Tensor.ndim

property Tensor.ndim

Returns the number of dimensions of self Tensor.