summaryrefslogtreecommitdiff
path: root/datastream.py
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2016-03-08 13:26:28 +0100
committerAlex Auvolat <alex@adnab.me>2016-03-08 13:26:28 +0100
commit2f479926c16d2911d0dd878c21de082abfc5b237 (patch)
treeb399e9ad9af04a9449334dff1a47449808b7ca13 /datastream.py
parent23093608e0edc43477c3a2ed804ae1016790f7e4 (diff)
downloadtext-rnn-2f479926c16d2911d0dd878c21de082abfc5b237.tar.gz
text-rnn-2f479926c16d2911d0dd878c21de082abfc5b237.zip
Revive project
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