Adds a node to the parent graph that computes the sum of entries of the array associated with the node along given axes. Applies [Graph::sum] to the parent graph, `this` node and `axes`. # Example ``` # use ciphercore_base::graphs::create_context; # use ciphercore_base::data_types::{INT32, array_type}; let c = create_context().unwrap(); let g = c.create_graph().unwrap(); let t = array_type(vec!
(&self, axes: ArrayShape)
| 914 | /// let n2 = n1.sum(axes).unwrap(); |
| 915 | /// ``` |
| 916 | pub fn sum(&self, axes: ArrayShape) -> Result<Node> { |
| 917 | self.get_graph().sum(self.clone(), axes) |
| 918 | } |
| 919 | |
| 920 | /// Adds a node to the parent graph that computes the cumulative sum of elements along a given axis. |
| 921 | /// |