# microopresolver

Interface for builtin and custom operator lookup.

## tflite::MicroOpResolver

`class` · `cpp`

```cpp
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.

Source: `tensorflow/lite/micro/micro_op_resolver.h:34`

### tflite::MicroOpResolver::FindOp--classtflite_1_1MicroOpResolver_1a19e0f781b22bdd3b665010040fd4b758

`method` · `cpp`

```cpp
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**

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| op | BuiltinOperator | Required |  |

Source: `tensorflow/lite/micro/micro_op_resolver.h:39`

### tflite::MicroOpResolver::FindOp--classtflite_1_1MicroOpResolver_1a0fb7f59a7c9ba4d4f295adc1a64f60e8

`method` · `cpp`

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

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

**Parameters**

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| op | const char * | Required |  |

Source: `tensorflow/lite/micro/micro_op_resolver.h:43`

### tflite::MicroOpResolver::GetOpDataParser

`method` · `cpp`

```cpp
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**

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| op | BuiltinOperator | Required |  |

Source: `tensorflow/lite/micro/micro_op_resolver.h:47`

### tflite::MicroOpResolver::~MicroOpResolver

`method` · `cpp`

```cpp
virtual tflite::MicroOpResolver::~MicroOpResolver()
```

Source: `tensorflow/lite/micro/micro_op_resolver.h:50`
