Пример #1
0
 def parse_for_minddataset(self):
     """Parse the sampler for MindRecord."""
     c_sampler = cde.MindrecordSubsetSampler(self.indices,
                                             ds.config.get_seed())
     c_child_sampler = self.parse_child_for_minddataset()
     c_sampler.add_child(c_child_sampler)
     return c_sampler
Пример #2
0
 def parse_for_minddataset(self):
     c_sampler = cde.MindrecordSubsetSampler(self.indices)
     c_child_sampler = self.parse_child_for_minddataset()
     c_sampler.add_child(c_child_sampler)
     return c_sampler
Пример #3
0
 def create_for_minddataset(self):
     c_sampler = cde.MindrecordSubsetSampler(self.indices, ds.config.get_seed())
     c_child_sampler = self.create_child_for_minddataset()
     c_sampler.add_child(c_child_sampler)
     return c_sampler