def _get_files(self, instruction):
     file_instructions = tfrecords_reader._make_file_instructions_from_absolutes(
         name='mnist',
         name2shard_lengths=self.NAME2SHARD_LENGTHS,
         absolute_instructions=[instruction],
     )
     return file_instructions
Пример #2
0
 def _get_files(self, instruction):
   file_instructions = tfrecords_reader._make_file_instructions_from_absolutes(
       name='mnist',
       split_infos=self.SPLIT_INFOS,
       absolute_instructions=[instruction],
   )
   return file_instructions
Пример #3
0
 def _get_files(self, instruction):
     file_instructions = tfrecords_reader._make_file_instructions_from_absolutes(
         name='mnist',
         name2shard_lengths=self.NAME2SHARD_LENGTHS,
         absolute_instructions=[instruction],
     )
     for fi in file_instructions.file_instructions:
         fi['filename'] = os.path.join('/foo/bar', fi['filename'])
     return file_instructions.file_instructions