Created by: liym27
Add basic support for Tensor.shape
in translating dygraph to static.
-
Replace
tensor_x.shape
used in Paddle API withfluid.layers.shape(tensor_x)
; -
Replace
tensor_x.shape
used in the conditions of control flow.https://github.com/PaddlePaddle/Paddle/pull/22866