template <unsigned int tOpCount>class MicroMutableOpResolver : public tflite::MicroOpResolvertflite::MicroMutableOpResolver< tOpCount >::MicroMutableOpResolver()FindOp
C++Returns the Op registration struct corresponding to the enum code from the flatbuffer schema.
const TFLMRegistration * tflite::MicroMutableOpResolver< tOpCount >::FindOp(tflite::BuiltinOperator op) constReturns 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
| Name | Type | Default | Description |
|---|---|---|---|
op | tflite::BuiltinOperator | Required |
FindOp
C++Returns the Op registration struct corresponding to the custom operator by name.
const TFLMRegistration * tflite::MicroMutableOpResolver< tOpCount >::FindOp(const char *op) constReturns the Op registration struct corresponding to the custom operator by name.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
op | const char * | Required |
Returns the operator specific parsing function for the OpData for a BuiltinOperator (if registered), else nullptr.
TfLiteBridgeBuiltinParseFunction tflite::MicroMutableOpResolver< tOpCount >::GetOpDataParser(BuiltinOperator op) constReturns the operator specific parsing function for the OpData for a BuiltinOperator (if registered), else nullptr.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
op | BuiltinOperator | Required |
AddCustom
C++Registers a Custom Operator with the MicroOpResolver.
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
| Name | Type | Default | Description |
|---|---|---|---|
name | const char * | Required | |
registration | const TFLMRegistration * | Required |
unsigned int tflite::MicroMutableOpResolver< tOpCount >::GetRegistrationLength()