diff --git a/python/paddle/fluid/layers/io.py b/python/paddle/fluid/layers/io.py index 2d17a97b0ef399a852a035f0aba621a19be594c2..39ce712081bc1ed275a0287b9bded90d2217b213 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,