<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/python/metadata.py#L846-L865) |

Returns the metadata in the model file as a buffer.

    tflite_support.metadata.get_metadata_buffer(
        model_buf
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `model_buf` | valid buffer of the model file. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Metadata buffer. Returns `None` if the model does not have metadata. ||

<br />