Skip to content
Merged
2 changes: 0 additions & 2 deletions _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ Similarily = "Similarily"
Simle = "Simle"
Sovler = "Sovler"
Successed = "Successed"
accordding = "accordding"
accoustic = "accoustic"
accpetance = "accpetance"
classfy = "classfy"
contxt = "contxt"
convertion = "convertion"
Expand Down
2 changes: 1 addition & 1 deletion docs/design/modules/net_op_design.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class PlainNet : public Net {
virtual Error AddBackwardOps() override;

protected:
// Create operators accordding to `def`, will be called by the constructor.
// Create operators according to `def`, will be called by the constructor.
Error BuildNet(const NetDesc &def);

// Add a operator which is identified as `type` and has attributes described
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ API 设计文档的目的是为了社区开发者更容易的参与开源项目
", "`Github 飞桨训练框架仓库 <https://github.com/PaddlePaddle/Paddle>`_"
"2、API 英文文档", "- `API 文档书写规范 <https://github.com/PaddlePaddle/docs/wiki/%E9%A3%9E%E6%A1%A8API%E6%96%87%E6%A1%A3%E4%B9%A6%E5%86%99%E8%A7%84%E8%8C%83>`_", "`Github 飞桨训练框架仓库 <https://github.com/PaddlePaddle/Paddle>`_"
"3、API 中文文档", "- `API 文档书写规范 <https://github.com/PaddlePaddle/docs/wiki/%E9%A3%9E%E6%A1%A8API%E6%96%87%E6%A1%A3%E4%B9%A6%E5%86%99%E8%A7%84%E8%8C%83>`_", "`Github 飞桨文档仓库 <https://github.com/PaddlePaddle/docs>`_"
"4、API 单测代码", "- `API 验收标准 <./api_accpetance_criteria_cn.html>`_", "`Github 飞桨训练框架仓库 <https://github.com/PaddlePaddle/Paddle>`_"
"4、API 单测代码", "- `API 验收标准 <./api_acceptance_criteria_cn.html>`_", "`Github 飞桨训练框架仓库 <https://github.com/PaddlePaddle/Paddle>`_"


当开发者完成以上代码设计后,需要将代码提交至 `Github 飞桨训练框架仓库 <https://github.com/PaddlePaddle/Paddle>`_ ,并根据 `本地开发指南 <https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/dev_guides/git_guides/local_dev_guide_cn.html>`_ 提交 PR、准备接受社区的评审。
Expand Down Expand Up @@ -108,4 +108,4 @@ API 设计文档的目的是为了社区开发者更容易的参与开源项目
auto_parallel_op_cn.md
api_design_guidelines_standard_cn.md
api_docs_guidelines_cn.md
api_accpetance_criteria_cn.md
api_acceptance_criteria_cn.md
2 changes: 1 addition & 1 deletion docs/dev_guides/api_contributing_guides/new_cpp_op_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ class TestTraceOp(OpTest):

Python API 也需要编写相关的单测进行测试,详见 [开发 API Python 端](new_python_api_cn.html)。

其他有关单元测试添加的注意事项请参考 [Op 开发手册](https://github.com/PaddlePaddle/Paddle/wiki/Operator-Development-Manual-Index) 及 [API 单测开发及验收规范](api_accpetance_criteria_cn.html)。
其他有关单元测试添加的注意事项请参考 [Op 开发手册](https://github.com/PaddlePaddle/Paddle/wiki/Operator-Development-Manual-Index) 及 [API 单测开发及验收规范](api_acceptance_criteria_cn.html)。

### 6.3 运行单元测试

Expand Down
4 changes: 2 additions & 2 deletions docs/dev_guides/api_contributing_guides/new_python_api_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ from .tensor.math import trace

**(2)Python API 单测开发及验收规范**

请遵循飞桨的 [API 单测开发及验收规范](api_accpetance_criteria_cn.html),需提前阅读。
请遵循飞桨的 [API 单测开发及验收规范](api_acceptance_criteria_cn.html),需提前阅读。

> 特别注意:单元测试要求新增代码单元测试行覆盖率达到 90%,可在 [CI 测试](../git_guides/paddle_ci_manual_cn.html) 的 PR-CI-Coverage 测试项中查看覆盖率。

Expand Down Expand Up @@ -509,6 +509,6 @@ Paddle 编译过程中,对于 Python 代码的处理方式是,先把它们

- [Op 开发手册(Operator Development Manual)](https://github.com/PaddlePaddle/Paddle/wiki/Operator-Development-Manual-Index)
- [API 的设计和命名规范](api_docs_guidelines_cn.html)
- [API 单测开发及验收规范](api_accpetance_criteria_cn.html)
- [API 单测开发及验收规范](api_acceptance_criteria_cn.html)
- [文档贡献指南](../docs_contributing_guides_cn.html)
- [API 文档书写规范](api_docs_guidelines_cn.html)
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@

- [代码风格规范](../git_guides/codestyle_check_guide_cn.html)
- [API 设计和命名规范](api_design_guidelines_standard_cn.html)
- [API 单元测试及验收规范](api_accpetance_criteria_cn.html)
- [API 单元测试及验收规范](api_acceptance_criteria_cn.html)
- [Paddle CI 测试详解](../git_guides/paddle_ci_manual_cn.html)
2 changes: 1 addition & 1 deletion docs/dev_guides/custom_device_docs/device_api_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ C_Status (*deinit_device)(const C_Device device)

### Description

It finalizes the designated device, and deallocate resources allocated to all devices. The API is inovked during the exit. If not implemented, it will not be inovked and it is invoked before finalization.
It finalizes the designated device, and deallocate resources allocated to all devices. The API is invoked during the exit. If not implemented, it will not be invoked and it is invoked before finalization.

### Parameter

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
- `C++ OP 开发指南 <../api_contributing_guides/new_cpp_op_cn.html>`_
- `OP Benchmark 使用指南 <https://github.com/PaddlePaddle/benchmark/blob/master/api>`_
- `算子性能优化 优化方法 <./op_optimization_method_introduction_cn.html>`_
- `算子性能优化 验收规范 <./op_optimization_accpetance_criteria_cn.html>`_
- `算子性能优化 验收规范 <./op_optimization_acceptance_criteria_cn.html>`_
", "`Github 飞桨训练框架仓库 <https://github.com/PaddlePaddle/Paddle>`_"


Expand Down Expand Up @@ -98,5 +98,5 @@
:hidden:

op_optimization_method_introduction_cn.md
op_optimization_accpetance_criteria_cn.md
op_optimization_acceptance_criteria_cn.md
kernel_primitive_api/index_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ https://www.paddlepaddle.org.cn/modelbase。

仍然以 LeNet 模型为例,手工转化的具体操作如下。

1. 通过阅读 PyTorch 源码可知,构建 LeNet 使用到的 PyTorch API 有:`nn.Module`, `nn.Squential`, `nn.Conv2d`, `nn.ReLU`, `nn.MaxPool2d`, `nn.Linear`以及`torch.flatten`。
1. 通过阅读 PyTorch 源码可知,构建 LeNet 使用到的 PyTorch API 有:`nn.Module`, `nn.Sequential`, `nn.Conv2d`, `nn.ReLU`, `nn.MaxPool2d`, `nn.Linear`以及`torch.flatten`。
2. 通过查找 [PyTorch-飞桨 API 映射表](https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/model_convert/pytorch_api_mapping_cn.html),找到对应的飞桨 API:

| **PyTorch** | **飞桨** | 差异对比 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ https://www.paddlepaddle.org.cn/modelbase。

仍然以 LeNet 模型为例,手工转化的具体操作如下。

1. 通过阅读 PyTorch 源码可知,构建 LeNet 使用到的 PyTorch API 有:`nn.Module`, `nn.Squential`, `nn.Conv2d`, `nn.ReLU`, `nn.MaxPool2d`, `nn.Linear`以及`torch.flatten`。
1. 通过阅读 PyTorch 源码可知,构建 LeNet 使用到的 PyTorch API 有:`nn.Module`, `nn.Sequential`, `nn.Conv2d`, `nn.ReLU`, `nn.MaxPool2d`, `nn.Linear`以及`torch.flatten`。
2. 通过查找 [PyTorch-飞桨 API 映射表](https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/model_convert/pytorch_api_mapping_cn.html),找到对应的飞桨 API:

| **PyTorch** | **飞桨** | 差异对比 |
Expand Down