sum

fun DagBuilder.sum(tensor: GraphValue<*>, dim: Int = -1, id: String = ""): GraphValue<*>

DSL extension for sum.