MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / set_as_output

Method set_as_output

ciphercore-base/src/graphs.rs:1299–1302  ·  view source on GitHub ↗

Applies [Graph::set_output_node] to the parent graph and `this` node. # Returns This node # Example ``` # use ciphercore_base::graphs::create_context; # use ciphercore_base::data_types::{array_type, vector_type, INT32}; let c = create_context().unwrap(); let g = c.create_graph().unwrap(); let t = array_type(vec![3, 2], INT32); let vec_t = vector_type(4, t); let n1 = g.input(vec_t).unwrap(); le

(&self)

Source from the content-addressed store, hash-verified

1297 /// g.finalize().unwrap();
1298 /// ```
1299 pub fn set_as_output(&self) -> Result<Node> {
1300 self.get_graph().set_output_node(self.clone())?;
1301 Ok(self.clone())
1302 }
1303}
1304
1305/// Methods which aren't supposed to be imported in Python.

Callers 15

instantiateMethod · 0.45
simple_contextFunction · 0.45
instantiateMethod · 0.45
instantiateMethod · 0.45
single_iteration_graphFunction · 0.45
instantiateMethod · 0.45
instantiateMethod · 0.45
instantiateMethod · 0.45
instantiateMethod · 0.45
instantiateMethod · 0.45

Calls 3

cloneMethod · 0.80
set_output_nodeMethod · 0.45
get_graphMethod · 0.45