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:51

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

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

tensorflow/lite/micro/micro_mutable_op_resolver.h:57

const TFLMRegistration * tflite::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:69

const TFLMRegistration * tflite::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:80

TfLiteBridgeBuiltinParseFunction tflite::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:95

TfLiteStatus tflite::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