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

add deprecated msg to py_readers, test=release/1.6 (#20212)

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