-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Add fp16 option for NNAPI in Android classification example #105
base: master
Are you sure you want to change the base?
Add fp16 option for NNAPI in Android classification example #105
Conversation
Can you link to a screenshot of the new UI? Thanks. |
@@ -34,7 +34,7 @@ | |||
*/ | |||
public ClassifierQuantizedMobileNet(Activity activity, Device device, int numThreads) | |||
throws IOException { | |||
super(activity, device, numThreads); | |||
super(activity, device, numThreads, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/fp16=/ false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How difficult would it be to gray out or disable the switch when float isn't selected, or when NNAPI isn't selected?
Thanks for the review. I don't know how difficult it is. I'll try to disable or gray out the switch. I am not familiar with Android widgets. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
a3588ae
to
48aa506
Compare
rebased to resolve conflict |
Some NNAPI accelerators are fp16 only. Add an option to allow fp32 on fp16 accelerators.
enable the FP16 switch only when NNAPI and floating point model are used.
48aa506
to
33aa4c3
Compare
rebased and resovled conflicts |
Some NNAPI accelerators are fp16 only. Add an option to allow fp32 on fp16 accelerators.