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

Function LITE_get_model_io_info_by_path

lite/lite-c/src/network.cpp:737–746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

735} // namespace
736
737int LITE_get_model_io_info_by_path(
738 const char* model_path, const LiteConfig config, LiteNetworkIO* ios) {
739 LITE_CAPI_BEGIN();
740 LITE_ASSERT(model_path, "The model_path pass to LITE api is null");
741 auto&& cpp_ios = lite::Runtime::get_model_io_info(
742 std::string{model_path}, convert_to_lite_config(config));
743 return write_ios_from_cpp_io(
744 cpp_ios, ios, reinterpret_cast<const void*>(model_path));
745 LITE_CAPI_END();
746}
747
748int LITE_get_model_io_info_by_memory(
749 const void* model_mem, size_t size, const LiteConfig config,

Callers 1

TESTFunction · 0.85

Calls 3

get_model_io_infoFunction · 0.85
convert_to_lite_configFunction · 0.85
write_ios_from_cpp_ioFunction · 0.85

Tested by 1

TESTFunction · 0.68