未验证 提交 e2372750 编写于 作者: Z Zeng Jinle 提交者: GitHub

add py_reader may be deprecated msg, test=develop (#19891)

上级 cee0079a
......@@ -665,6 +665,9 @@ def py_reader(capacity,
except fluid.core.EOFException:
test_reader.reset()
"""
logging.warn(
'paddle.fluid.layers.py_reader() may be deprecated in the near future. '
'Please use paddle.fluid.io.PyReader() instead.')
return _py_reader(
capacity=capacity,
shapes=shapes,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册