/////////////////// OptionsFastManager ///////////////////
| 24 | |
| 25 | // /////////////////// OptionsFastManager /////////////////// |
| 26 | void 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 | |
| 45 | std::string OptionsFastManager::set_next_fixed_options() { |
| 46 | reset_option(); |
no test coverage detected