From 73c9ba032673a9270d2d780f9e0dcef73a091f27 Mon Sep 17 00:00:00 2001 From: zhiqiu Date: Sun, 27 Sep 2020 23:13:59 +0800 Subject: [PATCH] fix sample code --- python/paddle/fluid/layers/nn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 22e2821973d..5c9cf703bbf 100755 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -6103,7 +6103,7 @@ def reshape(x, shape, actual_shape=None, act=None, inplace=False, name=None): .. code-block:: python import paddle.fluid as fluid - + paddle.enable_static() # example 1: # attr shape is a list which doesn't contain Tensors. data_1 = fluid.data( -- GitLab