third_party/tflite_support/src/tensorflow_lite_support/metadata/python/metadata.py
def with_model_buffer(cls, model_buffer):
    """Creates a MetadataDisplayer object for a file buffer.

    Args:
      model_buffer: TensorFlow Lite model buffer in bytearray.

    Returns:
      MetadataDisplayer object.
    """
    if not model_buffer:
      raise ValueError("model_buffer cannot be empty.")
    metadata_buffer = cls._get_metadata_buffer(model_buffer)
    associated_file_list = cls._parse_packed_associted_file_list(model_buffer)
    return cls(model_buffer, metadata_buffer, associated_file_list)
Creates a MetadataDisplayer object for a file buffer.

    Args:
      model_buffer: TensorFlow Lite model buffer in bytearray.

    Returns:
      MetadataDisplayer object.
    
Creates a MetadataDisplayer object for a file buffer.
Creates a MetadataDisplayer object for a file buffer .
def with_model_buffer(cls, model_buffer):
    if not model_buffer:
      raise ValueError("model_buffer cannot be empty.")
    metadata_buffer = cls._get_metadata_buffer(model_buffer)
    associated_file_list = cls._parse_packed_associted_file_list(model_buffer)
    return cls(model_buffer, metadata_buffer, associated_file_list)
def with_model_buffer ( cls , model_buffer ) : if not model_buffer : raise ValueError ( "model_buffer cannot be empty." ) metadata_buffer = cls . _get_metadata_buffer ( model_buffer ) associated_file_list = cls . _parse_packed_associted_file_list ( model_buffer ) return cls ( model_buffer , metadata_buffer , associated_file_list )
Creates a MetadataDisplayer object for a file buffer.
Creates a MetadataDisplayer object for a file buffer .
"""Creates a MetadataDisplayer object for a file buffer.

    Args:
      model_buffer: TensorFlow Lite model buffer in bytearray.

    Returns:
      MetadataDisplayer object.
    """
None
cls
model_buffer
TensorFlow Lite model buffer in bytearray.
TensorFlow Lite model buffer in bytearray .