Skip to content

Commit

Permalink
Merge pull request #8 from dzhwinter/fix/dataset
Browse files Browse the repository at this point in the history
fix dataset
  • Loading branch information
dzhwinter authored Dec 5, 2017
2 parents 81461bc + 2ceeb2e commit 9529663
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion paddle/understand_sentiment_lstm.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ def run_benchmark(model, args):

train_reader = paddle.batch(
paddle.reader.shuffle(
paddle.dataset.flowers.train(), buf_size=args.batch_size * 10),
paddle.dataset.imdb.train(word_dict),
buf_size=25000), # only set imdb for speed
batch_size=args.batch_size)
place = fluid.CPUPlace() if args.device == 'CPU' else fluid.GPUPlace(0)
exe = fluid.Executor(place)
Expand Down

0 comments on commit 9529663

Please sign in to comment.