non-inplace operation: sum the given specific dim
(x: &NdArray, dim: i32)
source not stored for this graph (policy: none)