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

Method update

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

Source from the content-addressed store, hash-verified

36using namespace lar;
37bool FusePreprocessOption::m_valid;
38void FusePreprocessOption::update() {
39 m_option_name = "fuse_preprocess";
40 enable_fuse_preprocess = FLAGS_enable_fuse_preprocess;
41 m_option = {{"enable_fuse_preprocess", lar::Bool::make(false)}};
42 std::static_pointer_cast<lar::Bool>(m_option["enable_fuse_preprocess"])
43 ->set_value(FLAGS_enable_fuse_preprocess);
44}
45
46bool FusePreprocessOption::is_valid() {
47 bool ret = FLAGS_enable_fuse_preprocess;

Callers 1

create_optionMethod · 0.45

Calls 2

makeFunction · 0.50
set_valueMethod · 0.45

Tested by

no test coverage detected