Skip to content

Commit e32f790

Browse files
committed
optimieze
1 parent 97686dd commit e32f790

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

docs/dev_guides/custom_device_docs/custom_device_example_cn.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
> 注意:
66
> - 请确保已经正确安装了[飞桨develop](https://github.com/PaddlePaddle/Paddle)最新版本
77
> - 当前仅支持 `Linux`平台,示例中使用X86_64平台
8-
> - 支持飞桨已通过头文件开放函数式声明的Kernel自定义编码与注册
98
109
## 第一步:实现自定义 Runtime
1110

docs/dev_guides/custom_device_docs/custom_device_example_en.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
# Example of Device Access
1+
# CustomDevice Example
22

3-
This section will talk about how to implement a CustomDevice plug-in and add a new device backend for PaddlePaddle. How to compile, package, install, and use the backend will also be introduced.
3+
In this section we will walk through the steps required to extend a fake hardware backend for PaddlePaddle by implementing a fake device named CustomCPU.
44

55
> Note:
66
> - Please make sure that you have correctly installed the latest version of [Paddle develop](https://github.com/PaddlePaddle/Paddle).
77
> - Only `Linux` is supported
8-
> - PaddlePaddle can have the custom kernel code and registration of open functional statements in heder files.
98
109
## Step One: Implement Custom Runtime
1110

docs/dev_guides/custom_device_docs/custom_kernel_docs/register_api_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@ PD_REGISTER_PLUGIN_KERNEL(softmax,
5858
```
5959

6060
> Note:
61-
> 1. When the backend is accessed through the custom runtime, the backend parameter must be the same as its name.
61+
> 1. When the backend is registered through the custom runtime, the backend parameter must be the same as its name.
6262
> 2. Except the requirement of the end function body of the registration macro,keep the empty function body. You can refer to other backends within the PaddlePaddle framework.

docs/dev_guides/custom_device_docs/index_en.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#############################
2-
Custom Device Access Guide
2+
Custom Device Support
33
#############################
44

5-
The custom device access decouples the framework from the device and makes it available to extend the backend of the PaddlePaddle device via plug-ins. In this way, developers can make a plug-in for PaddlePaddle only by implementing the standard API and compiling it into a dynamic-link library, instead of by modifying the code of PaddlePaddle. Now it is easier to develop hardware backends for PaddlePaddle.
5+
The custom device function decouples the framework from the device and makes it available to extend the backend of the PaddlePaddle device via plug-ins. In this way, developers can make a plug-in for PaddlePaddle only by implementing the standard API and compiling it into a dynamic-link library, instead of by modifying the code of PaddlePaddle. Now it is easier to develop hardware backends for PaddlePaddle.
66

7-
The custom device access is composed of custom runtime and custom kernel. With the two modules, users can connect new custom devices to PaddlePaddle according to their own needs.
7+
The custom device function is composed of custom runtime and custom kernel. With the two modules, users can connect new custom devices to PaddlePaddle according to their own needs.
88

99
- `Custom Runtime <./custom_runtime_en.html>`_ : Introduction of custom runtime of the PaddlePaddle framework
1010
- `Custom Kernel <./custom_kernel_en.html>`_ : Introduction of custom kernel of the PaddlePaddle framework
11-
- `Example of Device Access <./custom_device_example_en.html>`_ : To demonstrate how to connect new custom devices to PaddlePaddle
11+
- `CustomDevice Example <./custom_device_example_en.html>`_ : The tutorial of add a new custom device to PaddlePaddle
1212

1313
.. toctree::
1414
:hidden:

0 commit comments

Comments
 (0)