TensorFlow Lite Micro Init

Description

The TensorFlow Lite Micro Init functions are autogenerated from the flatbuffer file given in the configuration. This 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 configuraton.
 
void sl_tflite_micro_init (void)
 Creates the error reporter and opcode resolver and initializes 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 configuraton.

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

◆ sl_tflite_micro_init()

void sl_tflite_micro_init ( void  )

Creates the error reporter and opcode resolver and initializes variables for the flatbuffer given by the configuration.