From b2fd2158d4230a5ebaff7d45bd3aa5bb529dc157 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Mon, 8 Oct 2018 11:18:06 +0800 Subject: [PATCH] update comment --- python/paddle/fluid/layers/io.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/layers/io.py b/python/paddle/fluid/layers/io.py index 77b0971d5e..25fde782b7 100644 --- a/python/paddle/fluid/layers/io.py +++ b/python/paddle/fluid/layers/io.py @@ -787,9 +787,9 @@ def create_py_reader_by_data(capacity, >>> >>> image = fluid.layers.data(name='image', shape=[3,224,224], dtypes='float32') >>> label = fluid.layers.data(name='label', shape=[1], dtypes='int64') - >>> reader = fluid.layers.py_reader(capacity=64, feed_list=[image, label]) + >>> reader = fluid.layers.create_py_reader_by_data(capacity=64, feed_list=[image, label]) >>> reader.decorate_paddle_reader( - >>> paddle.v2.reader.shuffle(paddle.batch(mnist.train()) + >>> paddle.reader.shuffle(paddle.batch(mnist.train()) >>> >>> img, label = fluid.layers.read_file(reader) >>> loss = network(img, label) # some network definition -- GitLab