Skip to content
heliaRT
API reference
HELIA HUB

MicroMutableOpResolver

Fixed-capacity registration template; capacity counts registrations, not model nodes.

Machine-readable model

class

tensorflow/lite/micro/micro_mutable_op_resolver.h:49

template <unsigned int tOpCount>
class MicroMutableOpResolver : public tflite::micro::MicroOpResolver
method

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

tensorflow/lite/micro/micro_mutable_op_resolver.h:55

const TFLMRegistration * tflite::micro::MicroMutableOpResolver< tOpCount >::FindOp(tflite::BuiltinOperator op) const

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
optflite::BuiltinOperatorRequired
method

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

tensorflow/lite/micro/micro_mutable_op_resolver.h:67

const TFLMRegistration * tflite::micro::MicroMutableOpResolver< tOpCount >::FindOp(const char *op) const

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_mutable_op_resolver.h:78

TfLiteBridgeBuiltinParseFunction tflite::micro::MicroMutableOpResolver< tOpCount >::GetOpDataParser(
BuiltinOperator op
) const

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

Parameters of GetOpDataParser
NameTypeDefaultDescription
opBuiltinOperatorRequired
method

Registers a Custom Operator with the MicroOpResolver.

tensorflow/lite/micro/micro_mutable_op_resolver.h:93

TfLiteStatus tflite::micro::MicroMutableOpResolver< tOpCount >::AddCustom(
const char *name,
const TFLMRegistration *registration
)

Registers a Custom Operator with the MicroOpResolver.

Only the first call for a given name will be successful. i.e. if this function is called again for a previously added Custom Operator, the MicroOpResolver will be unchanged and this function will return kTfLiteError.

Parameters of AddCustom
NameTypeDefaultDescription
nameconst char *Required
registrationconst TFLMRegistration *Required