From 2113d6ed728e0e20ff529a64424f5a05637698b9 Mon Sep 17 00:00:00 2001 From: fengjiayi Date: Tue, 31 Oct 2017 10:06:44 -0700 Subject: [PATCH] fix bug (#5233) --- python/paddle/v2/dataset/imdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/v2/dataset/imdb.py b/python/paddle/v2/dataset/imdb.py index 93dd3e8f7d..cfc1c886e1 100644 --- a/python/paddle/v2/dataset/imdb.py +++ b/python/paddle/v2/dataset/imdb.py @@ -116,7 +116,7 @@ def reader_creator(pos_pattern, neg_pattern, word_idx, buffer_size): yield [word_idx.get(w, UNK) for w in doc], i % 2 doc = qs[i % 2].get() - return reader() + return reader def train(word_idx): -- GitLab