Displays metadata and associated file info in human-readable format.
tflite_support
.
metadata
.
MetadataDisplayer
(
model_buffer
,
metadata_buffer
,
associated_file_list
)
Methods
get_associated_file_buffer
get_associated_file_buffer
(
filename
)
Get the specified associated file content in bytearray.
filename
ValueError
get_metadata_buffer
get_metadata_buffer
()
Get the metadata buffer in bytearray out from the model.
get_metadata_json
get_metadata_json
()
Converts the metadata into a json string.
get_packed_associated_file_list
get_packed_associated_file_list
()
Returns a list of associated files that are packed in the model.
with_model_buffer
@classmethodwith_model_buffer ( model_buffer )
Creates a MetadataDisplayer object for a file buffer.
model_buffer
with_model_file
@classmethodwith_model_file ( model_file )
Creates a MetadataDisplayer object for the model file.
model_file
IOError
ValueError


