MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / config_model_internel

Method config_model_internel

lite/load_and_run/src/options/model_options.cpp:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace lar {
12template <typename ModelImpl>
13void PackModelOption::config_model_internel(
14 RuntimeParam& runtime_param, std::shared_ptr<ModelImpl> model) {
15 if (runtime_param.stage == RunStage::AFTER_MODEL_RUNNING) {
16 lite::ModelPacker packer(
17 model->get_model_path(), packed_model_dump, pack_info_json, pack_cache,
18 pack_binary_cache);
19 packer.set_header(pack_info_cryption, pack_model_cryption, is_fast_run_cache);
20 packer.pack_model();
21 }
22}
23} // namespace lar
24using namespace lar;
25////////////////////// PackModel options ////////////////////////

Callers

nothing calls this directly

Calls 7

set_headerMethod · 0.80
pack_modelMethod · 0.80
get_model_dataMethod · 0.45
writeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected