TensorndimTensor.ndim() Returns the number of dimensions of a tensor. Usage from tinygrad.tensor import Tensor a1 = Tensor([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) print(a1.ndim) Return value 2nbytesnormal