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.

RuntimeError: Internal: Unsupported data type: 0Node number 1 (EdgeTpuDelegateForCustomOp) failed to prepare.

See original GitHub issue

Hi all,

I am using the Coral Dev Board with the Mendel OS 4.0 (Day) version and tflite_runtime version 2.1.0. However, when I run the following example (officially provided) 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 I get the following error message. 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.

Meanwhile, when I run the detection’s example. The error is similar. Could someone please figure this out?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
lsq314commented, Feb 5, 2020

@Namburger Thank you very much. It’s been figured out.

1reaction
Namburgercommented, Feb 5, 2020

Ahh, can you also upgrade libedgetpu1-std also?

Read more comments on GitHub >

github_iconTop Results From Across the Web

RuntimeError: Internal: Unsupported data type: 0Node number ...
RuntimeError : Internal: Unsupported data type: 0Node number 1 (EdgeTpuDelegateForCustomOp) failed to prepare. #21.
Read more >
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 >
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 >
Solving Coral TPU code fails - Notion
CreateFromFile(model_path) RuntimeError: Internal: Unsupported data type in custom op handler: 1006632960Node 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