Uploading model into pytorch mobile


I’ve uploaded my custom model into a pytorch mobile app with the code “module = Module.load(assetFilePath(this, “model_Im2Im_enc.pt”));”

I don’t know why but as soon as this line is processed, my app stop to work.

How can i fix it? I’ve uploaded some other model like MobileNetV2 and all is working good, the problem comes when i start using custom model.

Thanks in advice