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

Method get_default

lite/load_and_run/src/helpers/common.h:159–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157 void set_value(bool v) { m_val = v; }
158 bool get_value() { return m_val; }
159 bool get_default() { return m_default_val; }
160 void reset_value() override { m_val = m_default_val; }
161 JsonValueType get_type() const override { return JsonValueType::Bool; }
162 std::string type_string() const override { return "Bool"; }

Callers 2

encode_single_optionsFunction · 0.45
encodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected