[Dy2stat]Fix error in tensor_shape_transformer. (#37999)
* fix error when tensor_shape_transformer. Before in stmt like `if len(paddle.shape(x)[0]) > 0`, `paddle` will be used as a variable * handle other call like `fluid.layers.mean` and `fluid.layers.shape` * add unit test
Showing
想要评论请 注册 或 登录