Adds an input node to the graph and returns it. During evaluation, input nodes require values to be supplied. # Arguments `input_type` - type of a new input node # Returns New input node # Example ``` # use ciphercore_base::graphs::create_context; # use ciphercore_base::data_types::{BIT, scalar_type}; let c = create_context().unwrap(); let g = c.create_graph().unwrap(); let t = scalar_type(
(&self, input_type: Type)
| 1557 | /// let n = g.input(t).unwrap(); |
| 1558 | /// ``` |
| 1559 | pub fn input(&self, input_type: Type) -> Result<Node> { |
| 1560 | self.add_node(vec![], vec![], Operation::Input(input_type)) |
| 1561 | } |
| 1562 | |
| 1563 | /// Adds an node with zeros of given type. |
| 1564 | /// |