Sum === Sum of the elements of the array over a given axis. **Abstract Signature:** ``Sum(a: Tensor, axis: int | tuple[int, ...] | None, dtype: DType | None, keepdims: bool = False, initial, where: Tensor | None, promote_integers: bool = True)`` .. raw:: html

PyTorch

API: torch.sum
Strategy: Direct Mapping

JAX (Core)

API: jax.numpy.sum
Strategy: Direct Mapping

NumPy

API: numpy.sum
Strategy: Direct Mapping

Keras

API: keras.ops.sum
Strategy: Direct Mapping

TensorFlow

API: tf.math.reduce_sum
Strategy: Direct Mapping

Apple MLX

API: mlx.core.sum
Strategy: Direct Mapping

Flax NNX

API: optax.tree.sum
Strategy: Direct Mapping