| 735 | } // namespace |
| 736 | |
| 737 | int 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 | |
| 748 | int LITE_get_model_io_info_by_memory( |
| 749 | const void* model_mem, size_t size, const LiteConfig config, |