Skip to content
heliaRT
API reference
HELIA HUB

RecordingMicroInterpreter

Interpreter variant exposing the recording allocator.

Machine-readable model

class

Utility subclass that enables internal recordings of the MicroInterpreter.

tensorflow/lite/micro/recording_micro_interpreter.h:36

class RecordingMicroInterpreter : public tflite::MicroInterpreter

Utility subclass that enables internal recordings of the MicroInterpreter. This class should be used to audit and analyze memory arena usage for a given model and interpreter.

After construction and the first Invoke() or AllocateTensors() call - the memory usage is recorded and available through the GetMicroAllocator() function. See RecordingMicroAlloctor for more details on what is currently recorded from arena allocations.

It is recommended for users to increase the tensor arena size by at least 1kb to ensure enough additional memory is available for internal recordings.

method

tensorflow/lite/micro/recording_micro_interpreter.h:38

tflite::RecordingMicroInterpreter::RecordingMicroInterpreter(
const Model *model,
const MicroOpResolver &op_resolver,
uint8_t *tensor_arena,
size_t tensor_arena_size,
MicroResourceVariables *resource_variable = nullptr,
MicroProfilerInterface *profiler = nullptr
)
Parameters of RecordingMicroInterpreter
NameTypeDefaultDescription
modelconst Model *Required
op_resolverconst MicroOpResolver &Required
tensor_arenauint8_t *Required
tensor_arena_sizesize_tRequired
resource_variableMicroResourceVariables *nullptr
profilerMicroProfilerInterface *nullptr
method

tensorflow/lite/micro/recording_micro_interpreter.h:50

tflite::RecordingMicroInterpreter::RecordingMicroInterpreter(
const Model *model,
const MicroOpResolver &op_resolver,
RecordingMicroAllocator *allocator,
MicroResourceVariables *resource_variable = nullptr,
MicroProfilerInterface *profiler = nullptr
)
Parameters of RecordingMicroInterpreter
NameTypeDefaultDescription
modelconst Model *Required
op_resolverconst MicroOpResolver &Required
allocatorRecordingMicroAllocator *Required
resource_variableMicroResourceVariables *nullptr
profilerMicroProfilerInterface *nullptr