Skip to content
heliaRT
API reference
HELIA HUB

MicroOpResolver

Interface for builtin and custom operator lookup.

Machine-readable model

class

This is an interface for the OpResolver for TFLiteMicro.

tensorflow/lite/micro/micro_op_resolver.h:34

class MicroOpResolver

This is an interface for the OpResolver for TFLiteMicro. The differences from the TFLite OpResolver base class are to:

  • explicitly remove support for Op versions
  • allow for finer grained registration of the Builtin Ops to reduce code size for TFLiteMicro.

We need an interface class instead of directly using MicroMutableOpResolver because MicroMutableOpResolver is a class template with the number of registered Ops as the template parameter.

method

Returns the Op registration struct corresponding to the enum code from the flatbuffer schema.

tensorflow/lite/micro/micro_op_resolver.h:39

virtual const TFLMRegistration * tflite::MicroOpResolver::FindOp(BuiltinOperator op) const = 0

Returns the Op registration struct corresponding to the enum code from the flatbuffer schema. Returns nullptr if the op is not found or if op == BuiltinOperator_CUSTOM.

Parameters of FindOp
NameTypeDefaultDescription
opBuiltinOperatorRequired
method

Returns the Op registration struct corresponding to the custom operator by name.

tensorflow/lite/micro/micro_op_resolver.h:43

virtual const TFLMRegistration * tflite::MicroOpResolver::FindOp(const char *op) const = 0

Returns the Op registration struct corresponding to the custom operator by name.

Parameters of FindOp
NameTypeDefaultDescription
opconst char *Required
method

Returns the operator specific parsing function for the OpData for a BuiltinOperator (if registered), else nullptr.

tensorflow/lite/micro/micro_op_resolver.h:47

virtual TfLiteBridgeBuiltinParseFunction tflite::MicroOpResolver::GetOpDataParser(BuiltinOperator op) const = 0

Returns the operator specific parsing function for the OpData for a BuiltinOperator (if registered), else nullptr.

Parameters of GetOpDataParser
NameTypeDefaultDescription
opBuiltinOperatorRequired