question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EdgeTpuDelegateForCustomOp failed to prepare

See original GitHub issue

When following the guide at https://coral.ai/docs/dev-board/get-started#6-run-a-model-using-the-tensorflow-lite-api I see the following error instead of the expected classification results:

mendel@red-bunny:~/tflite/python/examples/classification$ python3 classify_image.py \
> --model models/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite \
> --labels models/inat_bird_labels.txt \
> --input images/parrot.jpg
Traceback (most recent call last):
  File "classify_image.py", line 122, in <module>
    main()
  File "classify_image.py", line 100, in main
    interpreter.allocate_tensors()
  File "/home/mendel/.local/lib/python3.7/site-packages/tflite_runtime/interpreter.py", line 242, in allocate_tensors
    return self._interpreter.AllocateTensors()
  File "/home/mendel/.local/lib/python3.7/site-packages/tflite_runtime/interpreter_wrapper.py", line 115, in AllocateTensors
    return _interpreter_wrapper.InterpreterWrapper_AllocateTensors(self)
RuntimeError: Internal: Unsupported data type: 0Node number 1 (EdgeTpuDelegateForCustomOp) failed to prepare.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:23

github_iconTop GitHub Comments

1reaction
petewardencommented, Apr 28, 2020

Awesome, thanks, that works! Closing.

0reactions
luckywangchenxicommented, Sep 5, 2021

ok thankyou now I will try it

Read more comments on GitHub >

github_iconTop Results From Across the Web

RuntimeError: Internal: Unsupported data type in custom op ...
RuntimeError: Internal: Unsupported data type in custom op handler: -1328842432Node number 1 (EdgeTpuDelegateForCustomOp) failed to prepare.
Read more >
Build Coral for your platform
Unsupported data type in custom op handler: (EdgeTpuDelegateForCustomOp) failed to preparelink. After running a TF Lite model through the Edge TPU Compiler, ...
Read more >
AutoML TensorflowLite export is broken for Object Detection
Node number 2 (EdgeTpuDelegateforCustomOp) failed to prepare. Alex_Seguin August 13, 2021, 3:53am #4. Saw the same error on TF Lite models ...
Read more >
failed to prepare device for deplo… | Apple Developer Forums
I have tried running an app I've been working on on my phone and I keep getting a "Failed to prepare this device...
Read more >
Developers - Run Edge tpu error - - Bountysource
RuntimeError: Internal: Unsupported data type in custom op handler: 0Node number 0 (edgetpu-custom-op) failed to prepare.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found