Skip to content
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

How to add custom op in tflite-runtime? Encountered unresolved custom op: FarthestPointSample. #248

Open
kuangzy2011 opened this issue Aug 8, 2023 · 0 comments

Comments

@kuangzy2011
Copy link

kuangzy2011 commented Aug 8, 2023

Did inference with tflite-runtime, and got following errors.
Seems need to add custom op in tflite.
Any one can help?

 20 interpreter = tflite.Interpreter(model_path="./model-sign/model_sign.tflite")

---> 21 interpreter.allocate_tensors()
25 input_details = interpreter.get_input_details()

File /opt/conda/lib/python3.10/site-packages/tflite_runtime/interpreter.py:531, in Interpreter.allocate_tensors(self)
529 def allocate_tensors(self):
530 self._ensure_safe()
--> 531 return self._interpreter.AllocateTensors()

RuntimeError: Encountered unresolved custom op: FarthestPointSample.
See instructions: https://www.tensorflow.org/lite/guide/ops_custom Node number 0 (FarthestPointSample) failed to prepare.Encountered unresolved custom op: FarthestPointSample.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant