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

expand_as_op_1
Zeng Jinle 6 years ago committed by GitHub
parent cee0079a4d
commit e237275017
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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,

Loading…
Cancel
Save