提交 b2fd2158 编写于 作者: Q qiaolongfei

update comment

上级 91756a5a
...@@ -787,9 +787,9 @@ def create_py_reader_by_data(capacity, ...@@ -787,9 +787,9 @@ def create_py_reader_by_data(capacity,
>>> >>>
>>> image = fluid.layers.data(name='image', shape=[3,224,224], dtypes='float32') >>> image = fluid.layers.data(name='image', shape=[3,224,224], dtypes='float32')
>>> label = fluid.layers.data(name='label', shape=[1], dtypes='int64') >>> 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( >>> 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) >>> img, label = fluid.layers.read_file(reader)
>>> loss = network(img, label) # some network definition >>> loss = network(img, label) # some network definition
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册