cyrilzhang commited on
Commit
081e6b5
·
1 Parent(s): d06df0b

Update ace.py

Browse files
Files changed (1) hide show
  1. ace.py +2 -1
ace.py CHANGED
@@ -41,7 +41,7 @@ class MockupDataset(datasets.GeneratorBasedBuilder):
41
  BUILDER_CONFIGS = []
42
 
43
  def __init__(self, name=None, data_config={}, **kwargs):
44
- super().__init__(**kwargs)
45
 
46
  if 'length' not in data_config:
47
  data_config['length'] = 20
@@ -79,6 +79,7 @@ class MockupDataset(datasets.GeneratorBasedBuilder):
79
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
80
  def _generate_examples(self, split):
81
  for i in range(self.data_config['size']):
 
82
  yield i, {
83
  "x": [0]*self.data_config['length'],
84
  "y": [1]*self.data_config['length']
 
41
  BUILDER_CONFIGS = []
42
 
43
  def __init__(self, name=None, data_config={}, **kwargs):
44
+ super().__init__(streaming=True, **kwargs)
45
 
46
  if 'length' not in data_config:
47
  data_config['length'] = 20
 
79
  # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
80
  def _generate_examples(self, split):
81
  for i in range(self.data_config['size']):
82
+ print('generator iter', i)
83
  yield i, {
84
  "x": [0]*self.data_config['length'],
85
  "y": [1]*self.data_config['length']