Skip to content

Conversation

@Mddct
Copy link
Collaborator

@Mddct Mddct commented Nov 5, 2018

15个api翻译

Copy link
Collaborator

@tink2123 tink2123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verry good!thanks!
plz fix some typo and we will merge it

class paddle.fluid.Program
""""""""""""""""""""""""""""""""""""""""""

创建python program, 在paddleFluid内部会被转换为ProgramDesc描述语言,是被用来创建c++ Program。Program像容器一样也是一种独立的程序语言。Program包括至少一个块(Block),控制流比如conditional_block包括while_op,该Program将会含有嵌套快(nested block)。详情请参阅framework.proto。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嵌套 快==》块


参数:

- throw_on_error(bool): 有设置任何必需的字段时,抛出值错误。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没有设置任何必须字段时

.. code-block:: python

>>> import paddle.fluid as fluid
>>>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

辛苦把代码段中的 >>>去掉,将来遇到相同情况也做同样的操作。


.. code-block:: python

>>> import paddle.fluid as fluid
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

辛苦去掉>>>

class paddle.fluid.WeightNormParamAttr(dim=None, name=None, initializer=None, learning_rate=1.0, regularizer=None, trainable=True, gradient_clip=None, do_model_average=False)
""""""""""""""""""""""""""""""""""""""""""

用于取得权重范数。权重范数将权重向量的长度与其方向解耦。`Weight Normalization: A Simple Reparameterization to Accelerate Training of Deep Neural Networks <https://arxiv.org/pdf/1602.07868.pdf>`_ 这篇paper中讨论了权重范数的实现
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

将“取得权重范数”替换成“进行权重归一化”或“进行权重规范化”感觉会更好一点。


参数: dtype(int |float)——lod_tensor_array中元素的数据类型。

返回: lod_tensor_array, 元素数据类型为dtype。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

元素数据类型为dtype ==》存储元素的数据类型信息
或替换成其他你认为合适的表达


step_input(x)

将序列标记为动态RNN输入。:参数x:输入序列。:x型:变量
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

此处英文格式有误,辛苦将参数说明单独成行,如:

  • x:输入序列
  • x类型:变量

下同

update_memory(ex_mem, new_mem)

将内存从ex_mem更新到new_mem。注意,ex_mem和new_mem的shape和数据类型必须相同。:param ex_mem:memory Variable。:param ex_mem: the memory variable. :type ex_mem: Variable :param new_mem: the plain variable generated in RNN block. :type new_mem: Variable

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

此处参数说明需翻译成中文

Mddct added 4 commits November 8, 2018 15:48
修改笔误等
修改笔误等
修改部分格式
修改了写格式
Copy link
Collaborator

@tink2123 tink2123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

COOL! LGTM

@tink2123 tink2123 merged commit c3846de into PaddlePaddle:Translation-dh Nov 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants