# tflite_support.metadata_schema_py_generated.ProcessUnit

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1689-L1726) |

## Methods

### `GetRootAs`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1692-L1697)

```python
@classmethod
GetRootAs(
    buf, offset=0
)
```

### `GetRootAsProcessUnit`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1699-L1702)

```python
@classmethod
GetRootAsProcessUnit(
    buf, offset=0
)
```

This method is deprecated. Please switch to GetRootAs.

### `Init`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1708-L1709)

```python
Init(
    buf, pos
)
```

### `Options`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1719-L1726)

```python
Options()
```

### `OptionsType`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1712-L1716)

```python
OptionsType()
```

### `ProcessUnitBufferHasIdentifier`

[View source](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/metadata_schema_py_generated.py#L1703-L1705)

```python
@classmethod
ProcessUnitBufferHasIdentifier(
    buf, offset, size_prefixed=False
)
```