megengine.Tensor.sum

Tensor.sum(axis=None, keepdims=False)

See sum.