MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / build_modelserving

Function build_modelserving

flow-quickstart/src/main.rs:99–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97}
98
99fn build_modelserving() -> Vec<Node<'static>> {
100 let model_inp = Node {
101 question: "Enter model input tensor name.",
102 default: "data",
103 callback: substitute_model_inp,
104 };
105 let model_path = Node {
106 question: "Enter model fullpath.",
107 default: "model.mge",
108 callback: substitute_model_path,
109 };
110 vec![model_inp, model_path]
111}
112
113fn write_branch_name(s: &str) -> Result<Action, &'static str> {
114 CONTEXT.lock().unwrap().custom_branch = s.to_string();

Callers 1

create_with_typeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected