MCPcopy Index your code
hub / github.com/ciphermodelabs/ciphercore / get

Method get

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

Adds a node to the parent graph that extracts a sub-array with a given index from the array associated with the node. Applies [Graph::get] to the parent graph, `this` node and `index`. # 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![3

(&self, index: ArrayShape)

Source from the content-addressed store, hash-verified

981 /// let n2 = n1.get(index).unwrap();
982 /// ```
983 pub fn get(&self, index: ArrayShape) -> Result<Node> {
984 self.get_graph().get(self.clone(), index)
985 }
986
987 /// Adds a node that extracts a sub-array corresponding to a given slice from the array associated with the node.
988 ///

Callers 15

GetValueMethod · 0.45
join_inferenceFunction · 0.45
cached_node_typeMethod · 0.45
process_nodeMethod · 0.45
test_get_workerFunction · 0.45
test_get_worker_failFunction · 0.45
get_graphMethod · 0.45
get_nodeMethod · 0.45
run_instantiation_passFunction · 0.45
set_graph_nameMethod · 0.45
get_graph_nameMethod · 0.45

Calls 3

cloneMethod · 0.80
add_nodeMethod · 0.80
get_graphMethod · 0.45

Tested by 3

test_get_workerFunction · 0.36
test_get_worker_failFunction · 0.36
test_wellformed_casesFunction · 0.36