if you want to use this api, please call 'paddle.enable_static()' before this api to enter static graph mode. 根据报错提示,我们只需要在前加上import paddle;paddle.enable_static()就可以解决了。
if you want to use this api, please call 'paddle.enable_static()' before this api to enter static graph mode. 根据报错提示,我们只需要在前加上import paddle;paddle.enable_static()就可以解决了。