Function tvm::runtime::function::ffi::TVMModLoadFromFile[][src]

pub unsafe extern "C" fn TVMModLoadFromFile(
    file_name: *const i8,
    format: *const i8,
    out: *mut *mut c_void
) -> i32
Expand description

\brief Load module from file. \param file_name The file name to load the module from. \param format The format of the module. \param out The result module

\return 0 when success, nonzero when failure happens \note The resulting module do not contain import relation. It can be reconstructed by TVMModImport.