tensorflow-micropython-examples icon indicating copy to clipboard operation
tensorflow-micropython-examples copied to clipboard

Didn't find op for builtin opcode 'RANGE' version '1'

Open MATTYGILO opened this issue 2 years ago • 2 comments

When I load my model into the interpreter I get this error

Error in the comment below

MATTYGILO avatar Apr 10 '22 10:04 MATTYGILO

Didn't find op for builtin opcode 'RANGE' version '1'. An older version of this builtin might be supported. Are you using an old TFLite binary with a newer model?

Failed to get registration from op code RANGE
 
AllocateTensors() failed!

MATTYGILO avatar Apr 10 '22 10:04 MATTYGILO

I think this means your model is using an op not supported in tflite micro.

Here is the list of ops included: https://github.com/tensorflow/tflite-micro/blob/main/tensorflow/lite/micro/all_ops_resolver.cc

There is no range op.

Look at you model in netron and double check each op is supported and if not then you need to adjust your model to only have compatible ops.

There may also be options to request the op to be added upstream or to port it to tflm yourself.

https://github.com/tensorflow/tflite-micro/blob/main/tensorflow/lite/micro/docs/porting_reference_ops.md

mocleiri avatar Apr 15 '22 16:04 mocleiri