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

TensorFlow Lite Support #308

Open
Michael-F-Bryan opened this issue Jul 13, 2021 · 4 comments
Open

TensorFlow Lite Support #308

Michael-F-Bryan opened this issue Jul 13, 2021 · 4 comments

Comments

@Michael-F-Bryan
Copy link

Are bindings to TensorFlow Lite on the roadmap for this project?

@Nugine
Copy link

Nugine commented Jul 14, 2021

I wrote some code to support minimal inferencing. But I have no time to push it forward recently.
https://github.com/Nugine/tensorflow-lite

To use this crate, you may need to build tensorflow-lite manually, then specify how to link and where the libraries are located by environment variables. So you can build your projects quickly without internet or installation.

Since the safety requirements are unclear, I can not verify the soundness of this crate.

tensorflow/tensorflow#49899
Nugine/tensorflow-lite#1

@Michael-F-Bryan
Copy link
Author

To use this crate, you may need to build tensorflow-lite manually, then specify how to link and where the libraries are located by environment variables. So you can build your projects quickly without internet or installation.

This is more of a general comment and not directed specifically at you, but an important part of having support for TensorFlow Lite would be that downstream users don't need to worry about manually building tensorflow-lite or finding pre-compiled binaries. One of the big appeals of Rust is that cargo build or cargo build --target arm-linux-androideabi will Just Work without any extra hassle, and this works because all the build complexity is handled by the tensorflow-lite-sys crate (e.g. linking to the correct library if installed, otherwise compiling from source using the code included in the crate).

Most well designed C APIs are easy to write safe bindings for - the hard part is reliably (cross-)compiling and linking.

@fzyzcjy
Copy link

fzyzcjy commented Nov 10, 2021

+1 This is quite helpful! (I need to run a deep learning model on android and ios with Rust, so tflite instead of tf itself is required)

@sainteckes
Copy link

+1 :)
Are there any updates?

ramon-garcia pushed a commit to ramon-garcia/tensorflow-rust that referenced this issue May 20, 2023
- low-level: full logical types support in Parquet Thrift schema
- class serializer supports custom attributes to customize serialisation of dates, times, and decimals.
- added support for .NET 6 DateOnly type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants