summaryrefslogtreecommitdiff
path: root/datastream.py
diff options
context:
space:
mode:
Diffstat (limited to 'datastream.py')
-rw-r--r--datastream.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/datastream.py b/datastream.py
index 8025945..b7aae25 100644
--- a/datastream.py
+++ b/datastream.py
@@ -38,6 +38,7 @@ class BinaryFileDataset(Dataset):
return os.fstat(self.f.fileno()).st_size
class RandomBlockIterator(IterationScheme):
+ requests_examples=True
def __init__(self, item_range, seq_len, num_seqs_per_epoch, **kwargs):
self.seq_len = seq_len
self.num_seqs = num_seqs_per_epoch