sum

fun DTensor.sum(): DScalar
@JvmName(name = "varargSum")
fun DTensor.sum(vararg axes: Int, keepDims: Boolean = false): DTensor


fun DTensor.sum(axes: IntArray = IntArray(rank) { it }, keepDims: Boolean = false): DTensor

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.