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

Function context_generators

ciphercore-base/src/graphs.rs:5130–5302  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5128 }
5129
5130 fn context_generators() -> Vec<Box<dyn Fn() -> Context>> {
5131 let context1 = || {
5132 let context = create_unchecked_context().unwrap();
5133 context
5134 };
5135 let context2 = || {
5136 let context = create_unchecked_context().unwrap();
5137 let graph = context.create_graph().unwrap();
5138 let i = graph.input(scalar_type(BIT)).unwrap();
5139 graph.set_output_node(i).unwrap();
5140 graph.finalize().unwrap();
5141 context.set_main_graph(graph).unwrap();
5142 context.finalize().unwrap();
5143 context
5144 };
5145 let context3 = || {
5146 let context = create_unchecked_context().unwrap();
5147 context.create_graph().unwrap();
5148 context
5149 };
5150 let context4 = || {
5151 let context = create_unchecked_context().unwrap();
5152 let graph = context.create_graph().unwrap();
5153 let i = graph.input(scalar_type(BIT)).unwrap();
5154 graph.set_output_node(i).unwrap();
5155 graph.finalize().unwrap();
5156 context
5157 };
5158 let context5 = || {
5159 let context = create_unchecked_context().unwrap();
5160 let graph = context.create_graph().unwrap();
5161 graph.input(scalar_type(BIT)).unwrap();
5162 context
5163 };
5164 let context6 = || {
5165 let context = create_unchecked_context().unwrap();
5166 let graph = context.create_graph().unwrap();
5167 graph
5168 .constant(scalar_type(BIT), Value::from_bytes(vec![1]))
5169 .unwrap();
5170 context
5171 };
5172 let context7 = || {
5173 let context = create_unchecked_context().unwrap();
5174 let graph = context.create_graph().unwrap();
5175 let i1 = graph.input(scalar_type(BIT)).unwrap();
5176 let i2 = graph.input(scalar_type(BIT)).unwrap();
5177 graph.add(i1, i2).unwrap();
5178 context
5179 };
5180 let context8 = || {
5181 let context = create_unchecked_context().unwrap();
5182 let graph = context.create_graph().unwrap();
5183 let i1 = graph.input(scalar_type(BIT)).unwrap();
5184 let i2 = graph.input(scalar_type(BIT)).unwrap();
5185 graph.add(i2, i1).unwrap();
5186 context
5187 };

Callers 2

test_context_deep_equalFunction · 0.85
test_context_serializeFunction · 0.85

Calls 15

create_unchecked_contextFunction · 0.85
cloneMethod · 0.80
add_graph_annotationMethod · 0.80
add_node_annotationMethod · 0.80
scalar_typeFunction · 0.70
create_graphMethod · 0.45
inputMethod · 0.45
set_output_nodeMethod · 0.45
finalizeMethod · 0.45
set_main_graphMethod · 0.45
constantMethod · 0.45
addMethod · 0.45

Tested by 2

test_context_deep_equalFunction · 0.68
test_context_serializeFunction · 0.68