macro_rules! model_data {
($fn_name:ident, $data_sym:ident, $len_sym:ident) => { ... };
}Expand description
Declare a safe accessor for TFLite model data generated by convert.py.
Generates the extern "C" linkage for the _model_data and
_model_data_len symbols and wraps them in a function returning
&'static [u8]. No extern or unsafe needed in application code.
§Example
ⓘ
ove::model_data!(preprocessor_model,
g_audio_preprocessor_int8_model_data,
g_audio_preprocessor_int8_model_data_len);
let data: &[u8] = preprocessor_model();