提交 76129f03 编写于 作者: Q qiaolongfei

update comment

上级 fd9b650d
...@@ -893,12 +893,11 @@ def create_array(dtype): ...@@ -893,12 +893,11 @@ def create_array(dtype):
""" """
**Create LoDTensor Array** **Create LoDTensor Array**
This function creates an array of type :math:`LOD_TENSOR_ARRAY` using the This function creates an array of LOD_TENSOR_ARRAY . It is mainly used to
LayerHelper. It is mainly used to implement RNN with array_write, array_read implement RNN with array_write, array_read and While.
and While.
Args: 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: Returns:
Variable: The lod_tensor_array variable storing the elements of data type. Variable: The lod_tensor_array variable storing the elements of data type.
......
...@@ -1618,8 +1618,9 @@ def batch_norm(input, ...@@ -1618,8 +1618,9 @@ def batch_norm(input,
1. NHWC `[batch, in_height, in_width, in_channels]` 1. NHWC `[batch, in_height, in_width, in_channels]`
2. NCHW `[batch, in_channels, in_height, in_width]` 2. NCHW `[batch, in_channels, in_height, in_width]`
Refer to `Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift Refer to `Batch Normalization: Accelerating Deep Network Training by Reducing
<https://arxiv.org/pdf/1502.03167.pdf>`_ for more details. Internal Covariate Shift <https://arxiv.org/pdf/1502.03167.pdf>`_
for more details.
:math:`input` is the input features over a mini-batch. :math:`input` is the input features over a mini-batch.
......
...@@ -40,15 +40,14 @@ __all__ = [ ...@@ -40,15 +40,14 @@ __all__ = [
def create_tensor(dtype, name=None, persistable=False): def create_tensor(dtype, name=None, persistable=False):
""" """
**Create a Tensor with certain data type and name** **Create a Tensor**
Args: Args:
dtype (string): 'float32'|'int32'|..., the data type of the dtype (string): 'float32'|'int32'|..., the data type of the
created tensor. 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. the name will be a random unique one.
persistable (bool): Set the persistable flag of the create tensor, persistable (bool, Default: False): Set the persistable flag of the create tensor.
default value is False.
Returns: Returns:
Variable: The tensor variable storing the created tensor. Variable: The tensor variable storing the created tensor.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册