diff --git a/python/paddle/fluid/layers/control_flow.py b/python/paddle/fluid/layers/control_flow.py index 8cd389910c8ce6f3ef2e5585790aaa225620011c..b211bc837733fce0d33a86098c27bbf10822cf5d 100644 --- a/python/paddle/fluid/layers/control_flow.py +++ b/python/paddle/fluid/layers/control_flow.py @@ -1004,7 +1004,7 @@ def array_read(array, i): tmp = fluid.layers.zeros(shape=[10], dtype='int32') i = fluid.layers.fill_constant(shape=[1], dtype='int64', value=10) - arr = layers.array_read(tmp, i=i) + arr = fluid.layers.array_read(tmp, i=i) """ helper = LayerHelper('array_read', **locals()) diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index eba22f59623cc98d4ea85617bb5205aff78a7871..06fb3504a5556e5422cefbeb3f46cc2322c0d172 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -2916,9 +2916,9 @@ def warpctc(input, label, blank=0, norm_by_times=False): .. code-block:: python - label = layers.data(shape=[11, 8], dtype='float32', lod_level=1) - predict = layers.data(shape=[11, 1], dtype='float32') - cost = layers.warpctc(input=predict, label=label) + label = fluid.layers.data(shape=[11, 8], dtype='float32', lod_level=1) + predict = fluid.layers.data(shape=[11, 1], dtype='float32') + cost = fluid.layers.warpctc(input=predict, label=label) """ helper = LayerHelper('warpctc', **locals()) @@ -2982,7 +2982,7 @@ def sequence_reshape(input, new_dim): .. code-block:: python x = fluid.layers.data(shape=[5, 20], dtype='float32', lod_level=1) - x_reshaped = layers.sequence_reshape(input=x, new_dim=10) + x_reshaped = fluid.layers.sequence_reshape(input=x, new_dim=10) """ helper = LayerHelper('sequence_reshape', **locals()) out = helper.create_tmp_variable(helper.input_dtype())