提交 9185579c 编写于 作者: X Xin Pan

follow comments

上级 5d0bf8bc
......@@ -1218,6 +1218,7 @@ class IfElse(object):
Examples:
.. code-block:: python
limit = layers.fill_constant_batch_size_like(
input=label, dtype='int64', shape=[1], value=5.0)
cond = layers.less_than(x=label, y=limit)
......
......@@ -596,6 +596,7 @@ class Preprocessor(object):
Examples:
.. code-block:: python
preprocessor = fluid.layers.io.Preprocessor(reader=reader)
with preprocessor.block():
img, lbl = preprocessor.inputs()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册