MCPcopy Create free account
hub / github.com/MegEngine/MegCC / load_model

Method load_model

benchmark/src/CCbenchmark.cpp:53–64  ·  view source on GitHub ↗

////////////// CCBenchmarker ////////////////

Source from the content-addressed store, hash-verified

51
52/////////////////// CCBenchmarker ////////////////
53void CCBenchmarker::load_model() {
54#if TINYNN_CALLBACK_ENABLE
55 register_tinynn_cb(TINYNN_CB_VERSION, g_cb);
56#endif
57 LITE_CAPI_CHECK(
58 LITE_make_network(&m_model, *default_config(), *default_network_io()),
59 "create model error. \n");
60
61 LITE_CAPI_CHECK(
62 LITE_load_model_from_path(m_model, m_model_path.c_str()),
63 "load model error. \n");
64}
65
66void CCBenchmarker::profile() {
67 size_t nr_input = 0;

Callers 1

main.cppFile · 0.45

Calls 5

register_tinynn_cbFunction · 0.85
LITE_make_networkFunction · 0.85
default_configFunction · 0.85
default_network_ioFunction · 0.85

Tested by

no test coverage detected