-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where is this function "hexagon_nn_remove_clocks " implemented? Thanks #8
Comments
I just synced this repo, you can find it from here. |
Hi BIN, Thank you very much . Then I copy the file "hexagon_nn.h" to "mace / third_party / nnlib / hexagon_nn.h", In file included from mace/core/runtime/hexagon/hexagon_dsp_wrapper.cc:31: Regards. |
Don't replace the file hexagon_nn.h. |
Hi BIN, Run the example "mobilenet-v1-quantize-retrain-dsp" on target_socs: [sdm845], 2020-02-17 23:16:25.583 12455-12505/? I/MACE: mace.cc:500 Creating MaceEngine, MACE version: v0.12.0-20-gd7533c4 Thanks, regards. |
You can check if your device supports running models on DSP, please refer to Supported devices. |
But use nnlib/android_Release/ship/controller_test to test : adb shell "LD_LIBRARY_PATH=/data/local/tmp/hexagon_nn64 /data/local/tmp/hexagon_nn64/controller_test" |
The current version is 0x20f00, so it's not supposed to be 0x20600. Did you push the libhexagon_nn_skel.so? |
OK, re-push libhexagon_nn_skel.so, But still get the same error message: 02-17 17:53:58.825 344 577 I MACE : mace.cc:500 Creating MaceEngine, MACE version: v0.12.0-20-gd7533c4 |
Please paste the log of: |
about model : library_name: mobilenet-v1-quantize-retrain-dsp in the code "image_classify.cc" and got the error message : 02-18 12:37:30.456 28155 28181 I MACE : mace.cc:500 Creating MaceEngine, MACE version: v0.12.0-20-gd7533c4 If modify the code "image_classify.cc" : error message: 02-18 14:48:30.501 13316 13341 I MACE : mace.cc:539 Initializing MaceEngine |
My doubt is that model's outputs should be "MobilenetV1/Predictions/Softmax:0", |
The outputs used in "image_classify.cc" should be "MobilenetV1/Logits/Conv2d_1c_1x1/BiasAdd:0" as Hexagon NN does not support Op Squeeze which is just front of Softmax. As for the adb log, please provide the full log from MACE start instead of just a piece. |
OK, the attach file is the mace log. |
Hi BIN, Remove the library "libcdsprpc.so" and succeed. |
Did you push "libcdsprpc.so" to your phone before? Where did you remove it from? |
In the folder "macelibrary / src / main / jniLibs / arm64-v8a", |
OK, libcdsprpc.so is only used to build libmace and should not be used later, as every device which supports Hexagon DSP is shipped with a libcdsprpc.so. I'll try to clarify that. |
Where is this function "hexagon_nn_remove_clocks " implemented? Thanks
The text was updated successfully, but these errors were encountered: