Created by: zhiqiu
PR types
Others
PR changes
OPs
Describe
Remove inplace argument when calling fluid.layers.reshape()
There are 2 reasons,
-
fluid.layers.reshape()
do not support inplace in dygraph mode, while dygraph will be default in Paddle-2.0. So we need to avoid annoying warnings in Paddle-2.0 as follows.
-
fluid.layers.reshape(inplace=True)
will be replace byBufferSharedIdentityInplaceOpPass
, see details in #25900