From b487435f1ab54b5c87704e426b6c15d9206b49b7 Mon Sep 17 00:00:00 2001 From: zhiqiu Date: Mon, 28 Sep 2020 10:48:15 +0800 Subject: [PATCH] fix sample code --- python/paddle/fluid/layers/nn.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 5c9cf703bbf..69e2975e898 100755 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -6101,9 +6101,11 @@ def reshape(x, shape, actual_shape=None, act=None, inplace=False, name=None): Examples: .. code-block:: python - + + import paddle 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