Skip to content

Conversation

@zkh2016
Copy link
Contributor

@zkh2016 zkh2016 commented Oct 27, 2021

image
image
image
image

-------------------------------
.. py:class:: paddle.incubate.nn.FusedFeedForward(d_model, dim_feedforward, dropout_rate=0.1, activation='relu', act_dropout_rate=None, normalize_before=False, weight_attr=None, bias_attr=None)

这是一个调用融合算子fused_feedforward(参考:ref:`cn_api_incubate_nn_functional_fused_feedforward` )。
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里链接格式有问题。应该在参考后面加一个空格

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

- **dim_feedforward** (int) - 前馈神经网络中隐藏层的大小。
- **dropout_rate** (float,可选) - 对本层的输出进行处理的dropout值, 置零的概率。默认值:0.1。
- **activation** (str,可选) - 激活函数。默认值:``relu``。
- **act_dropout_rate** (float,可选) - 激活函数后的dropout置零的概率。如果为 `None` 则 `act_dropout_rate = dropout_rate` 。默认值: `None` 。
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里的格式应该都是两个 ` 而不是一个 `;一个的格式是斜体;下面的部分也同理

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Collaborator

@TCChenlong TCChenlong left a comment

Choose a reason for hiding this comment

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

LGTM

@TCChenlong TCChenlong merged commit f4b5f3f into PaddlePaddle:develop Oct 28, 2021
zkh2016 pushed a commit to zkh2016/docs that referenced this pull request Oct 28, 2021
* 修改错别字

* 备注CPU不支持float16

* update example

* add fused_feedforward

* add fused_feedforward

* add fused_feedforward

* opt the description

* update docs

* update docs

* update doc

* move fused_feedforward docs position

* add incubate/nn/layer

* move fused transfomrer doc to incubate/nn/

* modify the doc

* modify fused transformer encoder layer doc
TCChenlong pushed a commit that referenced this pull request Oct 28, 2021
* 新增一个融合算子:fused_feedforward (#3999)

* 修改错别字

* 备注CPU不支持float16

* update example

* add fused_feedforward

* add fused_feedforward

* add fused_feedforward

* opt the description

* update docs

* update docs

* update doc

* move fused_feedforward docs position

* 新增fused transformer encoder 中文文档 (#4022)

* 修改错别字

* 备注CPU不支持float16

* update example

* add fused_feedforward

* add fused_feedforward

* add fused_feedforward

* opt the description

* update docs

* update docs

* update doc

* move fused_feedforward docs position

* add incubate/nn/layer

* move fused transfomrer doc to incubate/nn/

* modify the doc

* modify fused transformer encoder layer doc
TCChenlong pushed a commit that referenced this pull request Dec 9, 2021
* 新增一个融合算子:fused_feedforward (#3999)

* 修改错别字

* 备注CPU不支持float16

* update example

* add fused_feedforward

* add fused_feedforward

* add fused_feedforward

* opt the description

* update docs

* update docs

* update doc

* move fused_feedforward docs position

* 新增fused transformer encoder 中文文档 (#4022)

* 修改错别字

* 备注CPU不支持float16

* update example

* add fused_feedforward

* add fused_feedforward

* add fused_feedforward

* opt the description

* update docs

* update docs

* update doc

* move fused_feedforward docs position

* add incubate/nn/layer

* move fused transfomrer doc to incubate/nn/

* modify the doc

* modify fused transformer encoder layer doc

* add some args (#4096)

* fix typo (#4105)

* fix typo

* fix typo

* fix ffn doc

* fix ffn doc

* fix typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants