-
Notifications
You must be signed in to change notification settings - Fork 45.8k
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
No OpKernel was registered to support Op 'Switch' with these attributes while using SSD_mobilenet models in Android tensorflow-demo #1740
Comments
hi @genminm |
I followed the instructions here: https://stackoverflow.com/a/43627334change all occurrences of the following in tensorflow/core/framework/register_types.h |
I have exactly the same issue with facenet on android, did you manage to find a solution for that ? |
@genminm There is no TF_CALL_bool(m) in |
The above solution is not working at all. |
I got the same issue...it was working fine last week...now I checkout a fresh copy on a different machine and tried doing exactly the same thing as before. The app now compiles after I added:
To build.gradle.... but the app crashes upon start with the following dump: Any got a solution??? 10-13 10:19:44.727 20504-20504/? I/zygote: Late-enabling -Xcheck:jni
10-13 10:19:47.473 20504-20504/org.tensorflow.demo D/tensorflow: CameraActivity: onPause org.tensorflow.demo.DetectorActivity@d97a4c5 |
@mpeniak if you download latest aar from http://ci.tensorflow.org/view/Nightly/job/nightly-android/ and import into your project, this issue will be gone. i guess the one in jcenter does not contain fix for this issue |
@sufish Could you outline the steps to accomplish this please? |
I am trying to use SSD_mobilenet model in the Android tensor flow demo to do object detection and tracking
I already followed the instructions here to transform the graph:#1609
but I get the following error: "No OpKernel was registered to support Op 'Switch' with these attrs. "
org.tensorflow.demo E/AndroidRuntime: FATAL EXCEPTION: inference
Process: org.tensorflow.demo, PID: 31398
java.lang.IllegalArgumentException: No OpKernel was registered to support Op 'Switch' with these attrs. Registered devices: [CPU], Registered kernels:
device='GPU'; T in [DT_STRING]
device='GPU'; T in [DT_BOOL]
device='GPU'; T in [DT_INT32]
device='GPU'; T in [DT_FLOAT]
device='CPU'; T in [DT_FLOAT]
device='CPU'; T in [DT_INT32]
The text was updated successfully, but these errors were encountered: