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

Method create_option

lite/load_and_run/src/options/optimize_options.cpp:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51std::shared_ptr<OptionBase> FusePreprocessOption::create_option() {
52 static std::shared_ptr<FusePreprocessOption> option(new FusePreprocessOption);
53 if (FusePreprocessOption::is_valid()) {
54 option->update();
55 return std::static_pointer_cast<OptionBase>(option);
56 } else {
57 return nullptr;
58 }
59}
60
61void FusePreprocessOption::config_model(
62 RuntimeParam& runtime_param, std::shared_ptr<ModelBase> model) {

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected