Adds a node to the parent graph that reshapes a value associated with the node to a given compatible type. Applies [Graph::reshape] to the parent graph, `this` node and `new_type`. # 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 old_t = array_type(vec![3
(&self, new_type: Type)
| 1021 | /// let n2 = n1.reshape(new_t).unwrap(); |
| 1022 | /// ``` |
| 1023 | pub fn reshape(&self, new_type: Type) -> Result<Node> { |
| 1024 | self.get_graph().reshape(self.clone(), new_type) |
| 1025 | } |
| 1026 | |
| 1027 | #[doc(hidden)] |
| 1028 | pub fn nop(&self) -> Result<Node> { |