-
Notifications
You must be signed in to change notification settings - Fork 131
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
Implement Custom Ops in build #3
Comments
Hi @ragavendranbala, I'm not familier with Tensorflow Lite python API, but It's easy to implement custom Op in C++ API. |
@terryky thanks for your reply, actually i wanted to build the plugin for android, i think , to make it work on android, i need to add this custom ops while building the plugin itelf. I have searched for links to reference the plugin in build. but no luck. i guess the build of plugin working on c++ only. I''m expecting your ideas for this |
hi @terryky , I have built the plugin which custom ops. now i need to know, is this running on CPU or GPU? is there is any possibilities to make the ops to run on GPU? |
Tensorflow Lite GPU Delegate supports following custom operations. |
@terryky the link you have given having the ops functions, but i think it's not building with my plugin bazel build -c opt --config android_arm64 --copt -Os --copt -DTFLITE_GPU_BINARY_RELEASE --copt -fvisibility=hidden --linkopt -s --strip always //tensorflow/lite/delegates/gpu:libtensorflowlite_gpu_delegate.so This is command I'm using to build my GPU delegate. Should I add any files to make it work on GPU? |
Does your app enable GPU Delegate ?
https://github.com/terryky/tflite_gles_app/blob/master/common/util_tflite.cpp#L167-L174 |
@terryky The plugin I have created running deeplab v3 on smoothly but this tflite is hicking up , based on the deeplab performance, I think gpu delegate is enabled |
@ragavendranbala can you share the android implementation |
Hi @terryky , I want to load the hairsegmentation model in python but when i try to initialize the tflite model in interpreter, it always showing MaxPoolingWithArgmax2D ops error. Can you tell me how to build this custom ops with bazel when building tensorflow. if I'm wrong please tell me how to implement custom ops. Thanks in Advance
The text was updated successfully, but these errors were encountered: