diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 5c9cf703bbfb2e63b0a714f2ca41d0167e3933c6..69e2975e8980b2331088dc6e51b13890a1cfa7b5 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(