third_party/tflite_support/src/tensorflow_lite_support/metadata/python/metadata.py
def _get_associated_files_from_table(self, table, field_name):
    """Gets the associated files that are attached a table directly.

    Args:
      table: a Flatbuffers table object that contains fields of an array of
        AssociatedFile, such as TensorMetadata and BertTokenizerOptions.
      field_name: the name of the field in the table that represents an array of
        ProcessUnit. If the table is TensorMetadata, field_name can be
        "AssociatedFiles". If the table is BertTokenizerOptions, field_name can
        be "VocabFile".

    Returns:
      the associated files list.
    """

    if table is None:
      return
    file_list = []
    length_method = getattr(table, field_name + "Length")
    member_method = getattr(table, field_name)
    for j in range(length_method()):
      file_list.append(member_method(j).Name().decode("utf-8"))
    return file_list
Gets the associated files that are attached a table directly.

    Args:
      table: a Flatbuffers table object that contains fields of an array of
        AssociatedFile, such as TensorMetadata and BertTokenizerOptions.
      field_name: the name of the field in the table that represents an array of
        ProcessUnit. If the table is TensorMetadata, field_name can be
        "AssociatedFiles". If the table is BertTokenizerOptions, field_name can
        be "VocabFile".

    Returns:
      the associated files list.
    
Gets the associated files that are attached a table directly.
Gets the associated files that are attached a table directly .
def _get_associated_files_from_table(self, table, field_name):
    if table is None:
      return
    file_list = []
    length_method = getattr(table, field_name + "Length")
    member_method = getattr(table, field_name)
    for j in range(length_method()):
      file_list.append(member_method(j).Name().decode("utf-8"))
    return file_list
def _get_associated_files_from_table ( self , table , field_name ) : if table is None : return file_list = [ ] length_method = getattr ( table , field_name + "Length" ) member_method = getattr ( table , field_name ) for j in range ( length_method ( ) ) : file_list . append ( member_method ( j ) . Name ( ) . decode ( "utf-8" ) ) return file_list
Gets the associated files that are attached a table directly.
Gets the associated files that are attached a table directly .
"""Gets the associated files that are attached a table directly.

    Args:
      table: a Flatbuffers table object that contains fields of an array of
        AssociatedFile, such as TensorMetadata and BertTokenizerOptions.
      field_name: the name of the field in the table that represents an array of
        ProcessUnit. If the table is TensorMetadata, field_name can be
        "AssociatedFiles". If the table is BertTokenizerOptions, field_name can
        be "VocabFile".

    Returns:
      the associated files list.
    """
the associated files list.
the associated files list .
self
table
a Flatbuffers table object that contains fields of an array of
AssociatedFile, such as TensorMetadata and BertTokenizerOptions.
a Flatbuffers table object that contains fields of an array of AssociatedFile such as TensorMetadata and BertTokenizerOptions .
field_name
the name of the field in the table that represents an array of
ProcessUnit. If the table is TensorMetadata, field_name can be
"AssociatedFiles". If the table is BertTokenizerOptions, field_name can
be "VocabFile".
the name of the field in the table that represents an array of ProcessUnit . If the table is TensorMetadata field_name can be " AssociatedFiles " . If the table is BertTokenizerOptions field_name can be " VocabFile " .