cyrilzhang commited on
Commit
e572ba6
1 Parent(s): 87d59b4

Update automata.py

Browse files
Files changed (1) hide show
  1. automata.py +1 -1
automata.py CHANGED
@@ -87,7 +87,7 @@ class MockupDataset(datasets.GeneratorBasedBuilder):
87
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
88
  def _generate_examples(self, split):
89
  for i in itertools.count(start=0):
90
- if i == range(self.data_config['size']:
91
  break
92
  x, y = self.sampler.sample()
93
  yield i, {
 
87
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
88
  def _generate_examples(self, split):
89
  for i in itertools.count(start=0):
90
+ if i == self.data_config['size']:
91
  break
92
  x, y = self.sampler.sample()
93
  yield i, {