third_party/tflite_support/src/tensorflow_lite_support/metadata/python/metadata.py
def with_model_file(cls, model_file):
    """Creates a MetadataDisplayer object for the model file.

    Args:
      model_file: valid path to a TensorFlow Lite model file.

    Returns:
      MetadataDisplayer object.

    Raises:
      IOError: File not found.
      ValueError: The model does not have metadata.
    """
    _assert_file_exist(model_file)
    with open(model_file, "rb") as f:
      return cls.with_model_buffer(f.read())
Creates a MetadataDisplayer object for the model file.

    Args:
      model_file: valid path to a TensorFlow Lite model file.

    Returns:
      MetadataDisplayer object.

    Raises:
      IOError: File not found.
      ValueError: The model does not have metadata.
    
Creates a MetadataDisplayer object for the model file.
Creates a MetadataDisplayer object for the model file .
def with_model_file(cls, model_file):
    _assert_file_exist(model_file)
    with open(model_file, "rb") as f:
      return cls.with_model_buffer(f.read())
def with_model_file ( cls , model_file ) : _assert_file_exist ( model_file ) with open ( model_file , "rb" ) as f : return cls . with_model_buffer ( f . read ( ) )
Creates a MetadataDisplayer object for the model file.
Creates a MetadataDisplayer object for the model file .
"""Creates a MetadataDisplayer object for the model file.

    Args:
      model_file: valid path to a TensorFlow Lite model file.

    Returns:
      MetadataDisplayer object.

    Raises:
      IOError: File not found.
      ValueError: The model does not have metadata.
    """
None
File not found.
File not found .
IOError
The model does not have metadata.
The model does not have metadata .
ValueError
cls
model_file
valid path to a TensorFlow Lite model file.
valid path to a TensorFlow Lite model file .