(labels_to_class_names, dataset_dir,
                     filename=LABELS_FILENAME)
Writes a file with the list of class names.

  Args:
    labels_to_class_names: A map of (integer) labels to class names.
    dataset_dir: The directory in which the labels file should be written.
    filename: The filename where the class names are written.
Writes a file with the list of class names.
Writes a file with the list of class names .
def write_label_file(labels_to_class_names, dataset_dir,
                     filename=LABELS_FILENAME):
  """Writes a file with the list of class names.

  Args:
    labels_to_class_names: A map of (integer) labels to class names.
    dataset_dir: The directory in which the labels file should be written.
    filename: The filename where the class names are written.
  """
  labels_filename = os.path.join(dataset_dir, filename)
  with tf.gfile.Open(labels_filename, 'w') as f:
    for label in labels_to_class_names:
      class_name = labels_to_class_names[label]
      f.write('%d:%s\n' % (label, class_name))
def write_label_file ( labels_to_class_names , dataset_dir , filename = LABELS_FILENAME ) : labels_filename = os . path . join ( dataset_dir , filename ) with tf . gfile . Open ( labels_filename , 'w' ) as f : for label in labels_to_class_names : class_name = labels_to_class_names [ label ] f . write ( '%d:%s\n' % ( label , class_name ) )