Conversation
Updated PyTorch Android and TorchVision dependency vision to 1.6.0 that fixed the runtime error for this example regarding the model version.
|
This PR fixes this bug : #79 |
|
This happens because trace_model.py builds/saves a new version of If you pull the code from the repo again (so that model.pt is also pulled) and directly run the app, it should work. This solution works, but we'll need to update it every time a new version of PyTorch is released. A preferred fix would be to update the documentation (https://github.com/pytorch/android-demo-app/blob/master/README.md) to include an explanation to update the android PyTorch dependency version to match your local PyTorch version. |
|
Hi @SuyashJoshi! Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
Updated PyTorch Android and TorchVision dependency vision to 1.6.0 that fixed the runtime error for this HelloWorldApp regarding the model version.