tflite_support.metadata.get_metadata_buffer

Returns the metadata in the model file as a buffer.

model_buf valid buffer of the model file.

Metadata buffer. Returns None if the model does not have metadata.