litert 0.1.0

Safe, idiomatic Rust bindings to Google's LiteRT (TFLite) on-device ML runtime.
docs.rs failed to build litert-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

litert

Safe, zero-friction Rust bindings to Google's LiteRT 2.x — the on-device machine-learning runtime formerly known as TensorFlow Lite.

[dependencies]
litert = "0.1"
use litert::{CompilationOptions, CompiledModel, Environment, Model, TensorBuffer};

let env      = Environment::new()?;
let model    = Model::from_file("mobilenet.tflite")?;
let options  = CompilationOptions::new()?;
let compiled = CompiledModel::new(env, model, &options)?;
// ... fill input buffers, compiled.run(...), read output buffers ...
# Ok::<(), litert::Error>(())

See the workspace README for quick start, platform support, GPU acceleration examples, and contributor docs.

License

Licensed under the Apache License, Version 2.0; see LICENSE and NOTICE for upstream attribution.