Cannot load Pytorch model in Pytorch mobile
I attempt to load a model into an android app using the pytorch mobile flutter plugin which is just a wrapper for the android pytorch package, but when I attempt to load the model I get the following debug statement
E/PyTorchMobile( 8111): assets/models/fullap.pt is not a proper model
E/PyTorchMobile( 8111): com.facebook.jni.CppException: [enforce fail at inline_container.cc:222] . file not found: archive/constants.pkl
E/PyTorchMobile( 8111): (no backtrace available)
E/PyTorchMobile( 8111):     at org.pytorch.NativePeer.initHybrid(Native Method)
E/PyTorchMobile( 8111):     at org.pytorch.NativePeer.&lt;init&gt;(NativePeer.java:25)
E/PyTorchMobile( 8111):     at org.pytorch.Module.load(Module.java:25)
E/PyTorchMobile( 8111):     at org.pytorch.Module.load(Module.java:35)
E/PyTorchMobile( 8111):     at io.fynn.pytorch_mobile.PyTorchMobilePlugin.onMethodCall(PyTorchMobilePlugin.java:58)
E/PyTorchMobile( 8111):     at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)

I saved the model using torch.save(model, path) after loading it from a state dict. I also tried to resave the model. Any ideas as to what the problem may be? the model is not quantized as of right now.

file not found: archive/constants.pkl 

Make sure you've set the right path of the model.
