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

Method input

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

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)

Source from the content-addressed store, hash-verified

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 ///

Callers 15

test_malformedFunction · 0.45
test_inputFunction · 0.45
test_addFunction · 0.45
mixed_multiply_helperFunction · 0.45
test_dot_workerFunction · 0.45
test_dot_worker_failFunction · 0.45
test_matmul_workerFunction · 0.45
test_matmul_worker_failFunction · 0.45
test_truncate_workerFunction · 0.45
test_sum_workerFunction · 0.45
test_sum_worker_failFunction · 0.45

Calls 2

InputClass · 0.85
add_nodeMethod · 0.80

Tested by 15

test_malformedFunction · 0.36
test_inputFunction · 0.36
test_addFunction · 0.36
test_dot_workerFunction · 0.36
test_dot_worker_failFunction · 0.36
test_matmul_workerFunction · 0.36
test_matmul_worker_failFunction · 0.36
test_truncate_workerFunction · 0.36
test_sum_workerFunction · 0.36
test_sum_worker_failFunction · 0.36
test_cum_sumFunction · 0.36