From 76129f03314afb26acae18e7a5838612f6fb28f0 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Wed, 13 Jun 2018 22:16:23 +0800 Subject: [PATCH] update comment --- python/paddle/fluid/layers/control_flow.py | 7 +++---- python/paddle/fluid/layers/nn.py | 5 +++-- python/paddle/fluid/layers/tensor.py | 7 +++---- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/python/paddle/fluid/layers/control_flow.py b/python/paddle/fluid/layers/control_flow.py index 7999ee0f802..feac42d94e6 100644 --- a/python/paddle/fluid/layers/control_flow.py +++ b/python/paddle/fluid/layers/control_flow.py @@ -893,12 +893,11 @@ def create_array(dtype): """ **Create LoDTensor Array** - This function creates an array of type :math:`LOD_TENSOR_ARRAY` using the - LayerHelper. It is mainly used to implement RNN with array_write, array_read - and While. + This function creates an array of LOD_TENSOR_ARRAY . It is mainly used to + implement RNN with array_write, array_read and While. Args: - dtype (int|float): The data type of the elements in the array. + dtype (int|float): The data type of the elements in the lod_tensor_array. Returns: Variable: The lod_tensor_array variable storing the elements of data type. diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 80452a1e8b2..3f3b7e20efe 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -1618,8 +1618,9 @@ def batch_norm(input, 1. NHWC `[batch, in_height, in_width, in_channels]` 2. NCHW `[batch, in_channels, in_height, in_width]` - Refer to `Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift - `_ for more details. + Refer to `Batch Normalization: Accelerating Deep Network Training by Reducing + Internal Covariate Shift `_ + for more details. :math:`input` is the input features over a mini-batch. diff --git a/python/paddle/fluid/layers/tensor.py b/python/paddle/fluid/layers/tensor.py index 6ce486d70d7..6b7f69807b3 100644 --- a/python/paddle/fluid/layers/tensor.py +++ b/python/paddle/fluid/layers/tensor.py @@ -40,15 +40,14 @@ __all__ = [ def create_tensor(dtype, name=None, persistable=False): """ - **Create a Tensor with certain data type and name** + **Create a Tensor** Args: dtype (string): 'float32'|'int32'|..., the data type of the created tensor. - name (string|None): The name of the created tensor, if not set, + name (string, Default: None): The name of the created tensor, if not set, the name will be a random unique one. - persistable (bool): Set the persistable flag of the create tensor, - default value is False. + persistable (bool, Default: False): Set the persistable flag of the create tensor. Returns: Variable: The tensor variable storing the created tensor. -- GitLab