torch.Tensor.ndim ================= .. currentmodule:: torch .. autoattribute:: Tensor.ndim