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

update comment

上级 fd9b650d
......@@ -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.
......
......@@ -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
<https://arxiv.org/pdf/1502.03167.pdf>`_ for more details.
Refer to `Batch Normalization: Accelerating Deep Network Training by Reducing
Internal Covariate Shift <https://arxiv.org/pdf/1502.03167.pdf>`_
for more details.
:math:`input` is the input features over a mini-batch.
......
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册