TensorsumTensor.sum() Returns the sum of all elements in the input tensor. Usage from tinygrad.tensor import Tensor a1 = Tensor([1, 2, 3, 4]) a1 = a1.sum() print(a1.numpy()) Return value 10.0subswish