diff --git a/python/paddle/fluid/dygraph/container.py b/python/paddle/fluid/dygraph/container.py index 9864daeb2feaf03c08c086d0b95a573d72767c48..3b96cb579c5a552ad161253dd4cdb7f3e7a3508d 100644 --- a/python/paddle/fluid/dygraph/container.py +++ b/python/paddle/fluid/dygraph/container.py @@ -182,6 +182,7 @@ class LayerList(Layer): Examples: .. code-block:: python + import paddle import numpy as np @@ -238,6 +239,7 @@ class LayerList(Layer): Examples: .. code-block:: python + import paddle linears = paddle.nn.LayerList([paddle.nn.Linear(10, 10) for i in range(10)]) @@ -258,6 +260,7 @@ class LayerList(Layer): Examples: .. code-block:: python + import paddle linears = paddle.nn.LayerList([paddle.nn.Linear(10, 10) for i in range(10)]) @@ -281,6 +284,7 @@ class LayerList(Layer): Examples: .. code-block:: python + import paddle linears = paddle.nn.LayerList([paddle.nn.Linear(10, 10) for i in range(10)])