Adds an node with zeros of given type. Compared to `constant` this node does produce a big value array in serialized graph. # Arguments `t` - node type # Returns New node with zeros of given type. # Example ``` # use ciphercore_base::graphs::create_context; # use ciphercore_base::data_types::{UINT8, array_type}; let c = create_context().unwrap(); let g = c.create_graph().unwrap(); let z = g
(&self, t: Type)
| 1582 | /// let z = g.zeros(array_type(vec![10, 20], UINT8)).unwrap(); |
| 1583 | /// ``` |
| 1584 | pub fn zeros(&self, t: Type) -> Result<Node> { |
| 1585 | self.add_node(vec![], vec![], Operation::Zeros(t)) |
| 1586 | } |
| 1587 | |
| 1588 | /// Adds an node with ones of given type. |
| 1589 | /// |