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

Method number

lite/load_and_run/src/helpers/json_loader.cpp:55–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55double JsonLoader::Value::number() {
56 mgb_assert(Type::NUMBER == m_type);
57 auto t = safe_cast<JsonLoader::NumberValue>();
58 return t->value();
59}
60
61bool JsonLoader::Value::Bool() {
62 mgb_assert(Type::BOOL == m_type);

Callers 3

parse_jsonMethod · 0.80
parse_stringMethod · 0.80
utils.cppFile · 0.80

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected