-
Notifications
You must be signed in to change notification settings - Fork 612
PytorchDemoApp at 1.4_nightly #29
Comments
Same here #31 |
Hello @ovthf There was a bug that was introduced into nightly builds - they included debug symbols and were very big, that gradle without additional setup of heap size (Xmx) failed to transform them. The fix was landed in master today ( pytorch/pytorch@8e3486d ) and the latest nightlies are 'normal' size. Please try the latest nightlies if it is still the problem. |
Hello @IvanKobzarev Thanks for your help. It works fine now. But when doing second time forward, encounter below issue. Please help. Thanks a lot. Testing code: com.facebook.jni.CppException:
|
@ovthf It was merged yesterday in pytorch master and it is included in our nightly android builds. To use them:
If you already using nightlies, you might need gradle key To check that the patch is included, 1.4.0 nightlies version should be >= 45 |
Hello @IvanKobzarev Thanks for your quick response. I noticed another issue that quantized model was much slower than floating model on moto G7 power android phone. With floating model, duration per inference is around 3 second. Please help to investigate. Thanks a lot. |
@raghuramank100 , have you seen that error before? |
I havent seen this before, but this error is specific to QNNPACK and is related to allowed values of scale and zero-point. I havent seen this issue for Mobilenet-v2. |
This looks like a genuine error related to QNNPACK, it is coming from: https://github.com/pytorch/QNNPACK/blob/901e9d40aeedb2c1b212b28f022fb099ffe617c2/src/convolution.c#L161 Are you running your model with sufficient calibration data prior to quantizing it? |
Used 50 images to do calibration. Here is how to quantize model:
Please help to verify. |
Hi,
I use Android Studio 3.5.2 and encounter below issue.
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Failed to transform artifact 'pytorch_android.aar (org.pytorch:pytorch_android:1.4.0-SNAPSHOT:20191111.132026-35)' to match attributes {artifactType=jar}.
The text was updated successfully, but these errors were encountered: