View source on GitHub |
A container for common associated file metadata information.
tflite_support.metadata_writers.metadata_info.AssociatedFileMd(
file_path: str,
description: Optional[str] = None,
file_type: Optional[tflite_support.metadata_schema_py_generated.AssociatedFileType
] = _metadata_fb.AssociatedFileType.UNKNOWN,
locale: Optional[str] = None
)
Attributes | |
---|---|
file_path
|
path to the associated file. |
description
|
description of the associated file. |
file_type
|
file type of the associated file 1. |
locale
|
locale of the associated file 2. |
Methods
create_metadata
create_metadata() -> tflite_support.metadata_schema_py_generated.AssociatedFileT
Creates the associated file metadata.
Returns | |
---|---|
A Flatbuffers Python object of the associated file metadata. |