Crate rknpu2

Crate rknpu2 

Source
Expand description

§rknpu2

§High level bindings for RKNN-Toolkit2 C inference API

§crate features

  • rv110x # For RV1103 / RV1106 / B variants
  • rk2118 # For RK2118
  • rk35xx # For RK356x
  • rk3576 # For RK3576 / RK3588
  • libloading
  • docs

The rk3576, rk35xx, rk2118, rv110x features determines what library to link with (librknnrt.so or librknnmrt.so)

The libloading feature enables dynamic loading of the RKNN-Toolkit2 library at runtime.

Re-exports§

pub use error::Error;
pub use rknn::RKNN;
pub use rknpu2_sys;

Modules§

api
Trait and implementation for RKNN
error
Error type
io
Input and output types
query
Query types
rknn
Main RKNN struct
tensor
Tensor types
utils
Utility functions

Structs§

bf16
A 16-bit floating point type implementing the bfloat16 format.
f16
A 16-bit floating point type implementing the IEEE 754-2008 standard binary16 a.k.a “half” format.