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

Function LITE_get_model_io_info_by_memory

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

Source from the content-addressed store, hash-verified

746}
747
748int LITE_get_model_io_info_by_memory(
749 const void* model_mem, size_t size, const LiteConfig config,
750 LiteNetworkIO* ios) {
751 LITE_CAPI_BEGIN();
752 LITE_ASSERT(model_mem, "The model_mem pass to LITE api is null");
753 auto&& cpp_ios = lite::Runtime::get_model_io_info(
754 model_mem, size, convert_to_lite_config(config));
755 return write_ios_from_cpp_io(
756 cpp_ios, ios, reinterpret_cast<const void*>(model_mem));
757 LITE_CAPI_END();
758}
759
760LITE_API int LITE_extra_configure(LiteNetwork network, LiteExtraConfig extra_config) {
761 LITE_CAPI_BEGIN();

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