jax.Array.sum# abstract Array.sum(axis=None, dtype=None, out=None, keepdims=False, initial=None, where=None, promote_integers=True)[source]# 数组元素在给定轴上的总和。 有关完整文档,请参阅 jax.numpy.sum()。 参数: self (Array) axis (reductions.Axis) dtype (DTypeLike | None) out (None) keepdims (bool) initial (ArrayLike | None) where (ArrayLike | None) promote_integers (bool) 返回类型: 数组