Load module from file. @param path The path to the module file. @param fmt The format of the file, if not specified it will be inferred from suffix of the file. @return The loaded module
(String path, String fmt)
| 111 | * @return The loaded module |
| 112 | */ |
| 113 | public static Module load(String path, String fmt) { |
| 114 | TVMValue ret = getApi("ffi.ModuleLoadFromFile").pushArg(path).pushArg(fmt).invoke(); |
| 115 | return ret.asModule(); |
| 116 | } |
| 117 | |
| 118 | public static Module load(String path) { |
| 119 | return load(path, ""); |