TensorFlow Lite Micro Init

Description

The TensorFlow Lite Micro Init functions are autogenerated from the flatbuffer file provided in the configuration, which includes an opsResolver generated according to the included operators in the flatbuffer. Helper functions to access the input and output tensors are also provided.

Functions

tflite::ErrorReporter * sl_tflite_micro_get_error_reporter ()
Get a pointer to the TensorFlow Lite Micro error reporter created by the init function.
tflite::MicroInterpreter * sl_tflite_micro_get_interpreter ()
Get a pointer to the TensorFlow Lite Micro interpreter created by the init function.
TfLiteTensor * sl_tflite_micro_get_input_tensor ()
Get a pointer to the input tensor, set by the init function.
TfLiteTensor * sl_tflite_micro_get_output_tensor ()
Get a pointer to the output tensor, set by the init function.
tflite::MicroOpResolver & sl_tflite_micro_opcode_resolver (tflite::ErrorReporter *error_reporter)
Get a pointer to the opcode resolver for the flatbuffer given by the configuration.
void sl_tflite_micro_init (void)
Create the error reporter and opcode resolver and initialize variables for the flatbuffer given by the configuration.

Function Documentation

sl_tflite_micro_get_error_reporter()

tflite::ErrorReporter* sl_tflite_micro_get_error_reporter ( )

Get a pointer to the TensorFlow Lite Micro error reporter created by the init function.

Returns
A pointer to the error reporter.

sl_tflite_micro_get_interpreter()

tflite::MicroInterpreter* sl_tflite_micro_get_interpreter ( )

Get a pointer to the TensorFlow Lite Micro interpreter created by the init function.

Returns
A pointer to the interpreter.

sl_tflite_micro_get_input_tensor()

TfLiteTensor* sl_tflite_micro_get_input_tensor ( )

Get a pointer to the input tensor, set by the init function.

Returns
A pointer to the input tensor.

sl_tflite_micro_get_output_tensor()

TfLiteTensor* sl_tflite_micro_get_output_tensor ( )

Get a pointer to the output tensor, set by the init function.

Returns
A pointer to the output tensor.

sl_tflite_micro_opcode_resolver()

tflite::MicroOpResolver& sl_tflite_micro_opcode_resolver ( tflite::ErrorReporter * error_reporter )

Get a pointer to the opcode resolver for the flatbuffer given by the configuration.

Parameters
[in] error_reporter A pointer to the error reporter.
Returns
The address to the opcode resolver.

sl_tflite_micro_init()

void sl_tflite_micro_init ( void )

Create the error reporter and opcode resolver and initialize variables for the flatbuffer given by the configuration.