sum
fun DTensor.sum(axes: IntArray = IntArray(rank) { it }, keepDims: Boolean = false): DTensor
Content copied to clipboard
Sum over given axes. If keepDims is true, the original rank of input is preserved. Otherwise, the dimensions provided by axis are removed from the output shape.