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

Function create_unchecked_context

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

In general, `create_unchecked_context()` should not return errors, but we still make the result type Result for uniformity.

()

Source from the content-addressed store, hash-verified

4607/// In general, `create_unchecked_context()` should not return errors, but
4608/// we still make the result type Result<Context> for uniformity.
4609pub(super) fn create_unchecked_context() -> Result<Context> {
4610 Ok(Context {
4611 body: Arc::new(AtomicRefCell::new(ContextBody {
4612 finalized: false,
4613 graphs: vec![],
4614 main_graph: None,
4615 graphs_names: HashMap::new(),
4616 graphs_names_inverse: HashMap::new(),
4617 nodes_names: HashMap::new(),
4618 nodes_names_inverse: HashMap::new(),
4619 graphs_annotations: HashMap::new(),
4620 nodes_annotations: HashMap::new(),
4621 type_checker: None,
4622 total_size_nodes: 0,
4623 })),
4624 })
4625}
4626
4627/// Creates an empty computation context.
4628///

Callers 15

test_malformedFunction · 0.85
test_inputFunction · 0.85
test_zeros_and_onesFunction · 0.85
test_addFunction · 0.85
mixed_multiply_helperFunction · 0.85
test_dot_workerFunction · 0.85
test_dot_worker_failFunction · 0.85
test_matmul_workerFunction · 0.85
test_matmul_worker_failFunction · 0.85
test_truncate_workerFunction · 0.85
test_sum_workerFunction · 0.85

Calls

no outgoing calls

Tested by 15

test_malformedFunction · 0.68
test_inputFunction · 0.68
test_zeros_and_onesFunction · 0.68
test_addFunction · 0.68
test_dot_workerFunction · 0.68
test_dot_worker_failFunction · 0.68
test_matmul_workerFunction · 0.68
test_matmul_worker_failFunction · 0.68
test_truncate_workerFunction · 0.68
test_sum_workerFunction · 0.68
test_sum_worker_failFunction · 0.68