From e2372750172be6d27afd5c48bcea9a0e9485492a Mon Sep 17 00:00:00 2001 From: Zeng Jinle <32832641+sneaxiy@users.noreply.github.com> Date: Sat, 21 Sep 2019 08:54:45 +0800 Subject: [PATCH] add py_reader may be deprecated msg, test=develop (#19891) --- python/paddle/fluid/layers/io.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/paddle/fluid/layers/io.py b/python/paddle/fluid/layers/io.py index 2d17a97b0ef..39ce712081b 100644 --- a/python/paddle/fluid/layers/io.py +++ b/python/paddle/fluid/layers/io.py @@ -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, -- GitLab