(self)
return data_files
Returns a python list of all (sharded) data subset files.

    Returns:
      python list of all (sharded) data set files.

    Raises:
      ValueError: if there are not data_files matching the subset.
Returns a python list of all (sharded) data subset files.
Returns a python list of all ( sharded ) data subset files .
def data_files(self):
    """Returns a python list of all (sharded) data subset files.

    Returns:
      python list of all (sharded) data set files.

    Raises:
      ValueError: if there are not data_files matching the subset.
    """
    imagenet_data_dir = os.path.expanduser(FLAGS.imagenet_data_dir)
    if not tf.gfile.Exists(imagenet_data_dir):
      print('%s does not exist!' % (imagenet_data_dir))
      sys.exit(-1)

    tf_record_pattern = os.path.join(imagenet_data_dir, '%s-*' % self.subset)
    data_files = tf.gfile.Glob(tf_record_pattern)
    if not data_files:
      print('No files found for dataset ImageNet/%s at %s' %
            (self.subset, imagenet_data_dir))

      self.download_message()
      sys.exit(-1)

    return data_files
def data_files ( self ) : imagenet_data_dir = os . path . expanduser ( FLAGS . imagenet_data_dir ) if not tf . gfile . Exists ( imagenet_data_dir ) : print ( '%s does not exist!' % ( imagenet_data_dir ) ) sys . exit ( - 1 ) tf_record_pattern = os . path . join ( imagenet_data_dir , '%s-*' % self . subset ) data_files = tf . gfile . Glob ( tf_record_pattern ) if not data_files : print ( 'No files found for dataset ImageNet/%s at %s' % ( self . subset , imagenet_data_dir ) ) self . download_message ( ) sys . exit ( - 1 ) return data_files