tflite-rs icon indicating copy to clipboard operation
tflite-rs copied to clipboard

Old TFLite binary with newer model.

Open Techseeker-404 opened this issue 3 years ago • 5 comments

@boncheolgu got the following error

Finished dev [unoptimized + debuginfo] target(s) in 2m 14s
     Running `target/debug/tftest`
ERROR: Op builtin_code out of range: 127. Are you using old TFLite binary with newer model?
ERROR: Registration failed.

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: InternalError("failed to build")', src/main.rs:57:18

tflite model was build and converted using tensorflow-gpu==2.7.0 Host-OS :- Pop_Os(linux X86_64) At some stage, i have plans to cross compile the application to arm architecture for raspberry pi model3

Techseeker-404 avatar Feb 10 '22 05:02 Techseeker-404

Same. Did you ever get it figured out?

ERROR: Op builtin_code out of range: 120. Are you using old TFLite binary with newer model?
ERROR: Registration failed.

tflite-rs 0.9.6 and the min_runtime_version metadata in my model.tflite has a buffer value of: 303 (???).

bugeats avatar Jul 27 '22 18:07 bugeats

@bugeats sorry for the delayed response, unfortunately I couldn't figure out the issue. So I moved to tract-onnx which serves well for my need https://github.com/sonos/tract

Techseeker-404 avatar Aug 07 '22 12:08 Techseeker-404

I have the same issue when running the yamnet tflite model on x86_64 linux. A solution would be great.

And this library also compiles not on a mac m1 processor.

inf17101 avatar Jul 30 '23 20:07 inf17101

I have the same issue when running the yamnet tflite model on x86_64 linux. A solution would be great.

And this library also compiles not on a mac m1 processor.

How about considering the https://github.com/sonos/tract which is an amazing crate.

Techseeker-404 avatar Jul 31 '23 04:07 Techseeker-404

Thank you for reply.

I have found a lib that works on all platforms I need. It' s called tflitec and builds on linux x86_64, arm64 and on darwin-arm64 (M1) without problems because it is just a wrapper around tflight C lib. It fits my need because I do not need to export the model in different special formats and the client code of this lib looks straight forward.

Issue can be closed. Thanks

inf17101 avatar Aug 04 '23 14:08 inf17101