MCPcopy Create free account
hub / github.com/alibaba/MNN / save

Method save

tools/converter/source/optimizer/Program.cpp:91–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void Program::save(MNN::NetT* net) {
92 // use origin input var to save into net
93 for (auto& it : mOriginInputs) {
94 auto& var = std::get<0>(it);
95 var->setExpr(std::get<1>(it), std::get<2>(it));
96 }
97 Variable::save(mOutputs, net);
98}
99
100std::shared_ptr<Program> Program::create(const MNN::NetT* net, bool supportExtra, bool saveAllVars) {
101 return create(net->oplists, net->tensorName, net->outputName, supportExtra, saveAllVars, net);

Callers 15

run_torchscriptFunction · 0.45
__test_specify_outputMethod · 0.45
save_sensitivity_npyMethod · 0.45
get_op_weight_valuesFunction · 0.45
get_quant_weight_io_mapFunction · 0.45
quanDemo.pyFile · 0.45
RunExtraPassFunction · 0.45
RunMergePassFunction · 0.45
write_npyFunction · 0.45
slim_onnxMethod · 0.45

Calls 1

saveFunction · 0.50

Tested by 2

run_torchscriptFunction · 0.36
__test_specify_outputMethod · 0.36