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

Method init

lite/load_and_run/src/strategys/strategy_fitting.cpp:26–43  ·  view source on GitHub ↗

/////////////////// OptionsFastManager ///////////////////

Source from the content-addressed store, hash-verified

24
25// /////////////////// OptionsFastManager ///////////////////
26void OptionsFastManager::init(std::shared_ptr<OptionMap>& options) {
27 m_option_group_cnt = 0;
28 m_fixed_option_cnt = 0;
29 m_internal_options_name = {
30 {"enable_fuse_conv_bias_with_z"},
31 {"enable_fuse_preprocess"},
32 {"record_comp_seq"},
33 {"const_shape"}};
34 //! record the independent option value
35 for (auto& option : *options) {
36 auto option_vals = option.second->get_option();
37 if (option_vals) {
38 for (auto& item : *option_vals) {
39 m_valid_option_vals.insert(item);
40 }
41 }
42 }
43};
44
45std::string OptionsFastManager::set_next_fixed_options() {
46 reset_option();

Callers 1

FittingStrategyMethod · 0.45

Calls 2

get_optionMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected