-
Notifications
You must be signed in to change notification settings - Fork 875
First 15 translation #281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First 15 translation #281
Conversation
tink2123
left a comment
There was a problem hiding this 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
doc/fluid/api/fluid_cn.rst
Outdated
| class paddle.fluid.Program | ||
| """""""""""""""""""""""""""""""""""""""""" | ||
|
|
||
| 创建python program, 在paddleFluid内部会被转换为ProgramDesc描述语言,是被用来创建c++ Program。Program像容器一样也是一种独立的程序语言。Program包括至少一个块(Block),控制流比如conditional_block包括while_op,该Program将会含有嵌套快(nested block)。详情请参阅framework.proto。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嵌套 快==》块
doc/fluid/api/fluid_cn.rst
Outdated
|
|
||
| 参数: | ||
|
|
||
| - throw_on_error(bool): 有设置任何必需的字段时,抛出值错误。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没有设置任何必须字段时
doc/fluid/api/fluid_cn.rst
Outdated
| .. code-block:: python | ||
|
|
||
| >>> import paddle.fluid as fluid | ||
| >>> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
辛苦把代码段中的 >>>去掉,将来遇到相同情况也做同样的操作。
doc/fluid/api/fluid_cn.rst
Outdated
|
|
||
| .. code-block:: python | ||
|
|
||
| >>> import paddle.fluid as fluid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
辛苦去掉>>>
doc/fluid/api/fluid_cn.rst
Outdated
| 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中讨论了权重范数的实现 |
There was a problem hiding this comment.
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。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
元素数据类型为dtype ==》存储元素的数据类型信息
或替换成其他你认为合适的表达
doc/fluid/api/layers_cn.rst
Outdated
|
|
||
| step_input(x) | ||
|
|
||
| 将序列标记为动态RNN输入。:参数x:输入序列。:x型:变量 |
There was a problem hiding this comment.
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 | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
此处参数说明需翻译成中文
修改笔误等
修改笔误等
修改部分格式
修改了写格式
tink2123
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
COOL! LGTM
15个api翻译