Rate this Page

torch.Tensor.dim#

Tensor.dim()int#

Returns the number of dimensions ofself tensor.