HaoKang-Timmy opened a new issue, #12616: URL: https://github.com/apache/tvm/issues/12616
TVM version = 0.0.0 Android-platform = 17 Hi, I am trying to use demo [android_deploy](https://github.com/apache/tvm/tree/main/apps/android_deploy) to embed mobilenetv2 into my android phone. But it can not load .so file when the app runs. Here is the code that generates the .so file ``` model = models.MobileNetV2(width_mult=1) model.eval() input_name = "data" shape_list = [(input_name,(1,3,224,224))] img = torch.rand([1,3,224,224]) model = torch.jit.trace(model,img) shape_list = [(input_name,(1,3,224,224))] mod, params = relay.frontend.from_pytorch(model, shape_list) print("dumping lib...") lib.export_library(output_path_str + "/" + "deploy_lib_cpu.so", ndk.create_shared) print("dumping graph...") with open(output_path_str + "/" + "deploy_graph.json", "w") as f: f.write(graph) print("dumping params...") with open(output_path_str + "/" + "deploy_param.params", "wb") as f: f.write(tvm.runtime.save_param_dict(params)) ``` But once I put these files into asset folder and insert the app into android device. It shows that I could not load the .so file(the other two could be loaded). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
