Skip to content

Commit 86cd833

Browse files
authored
[Doc][Fix] Fix the issue with the link of 'layout.h' (#7275)
1 parent ededed2 commit 86cd833

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

docs/dev_guides/custom_device_docs/custom_kernel_docs/kernel_declare_cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void KernelNameKernel(const Context& dev_ctx,
3939
- `phi::dtype::float16` 请参照[float16.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/float16.h)
4040
- `const Scalar&` 请参照[scalar.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/scalar.h)
4141
- `DataType` 请参照[data_type.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/data_type.h)
42-
- `DataLayout` 请参照[layout.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/layout.h)
42+
- `DataLayout` 请参照[layout.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/common/layout.h)
4343
- `Place` 请参照[place.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/place.h)
4444
- `const std::vector<int64_t>&`
4545
- `const ScalarArray&` 请参照[int_array.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/int_array.h)

docs/dev_guides/custom_device_docs/custom_kernel_docs/kernel_declare_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Agreement:
3939
- `phi::dtype::float16` Please refer to [float16.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/float16.h)
4040
- `const Scalar&` Please refer to [scalar.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/scalar.h)
4141
- `DataType` Please refer to [data_type.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/data_type.h)
42-
- `DataLayout` Please refer to [layout.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/layout.h)
42+
- `DataLayout` Please refer to [layout.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/common/layout.h)
4343
- `Place` Please refer to [place.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/place.h)
4444
- `const std::vector<int64_t>&`
4545
- `const ScalarArray&` Please refer to [scalar_array.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/scalar_array.h)

docs/dev_guides/custom_device_docs/custom_kernel_docs/register_api_cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ PD_REGISTER_PLUGIN_KERNEL(kernel_name, backend, layout, meta_kernel_fn, ...)) {}
2020
- 注册宏名称:固定为`PD_REGISTER_PLUGIN_KERNEL`
2121
- 第一个参数:kernel_name,即 Kernel 名称,飞桨内外一致,请参照 CPU 相同 Kernel 函数注册名称,如`softmax`
2222
- 第二个参数:backend,即后端名称,可自定义,但须与自定义 Runtime 设定的名称一致,如`Ascend910`
23-
- 第三个参数:layout,即内存布局,为`DataLayout`类型的枚举,按需设定,请参照[layout.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/layout.h)
23+
- 第三个参数:layout,即内存布局,为`DataLayout`类型的枚举,按需设定,请参照[layout.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/common/layout.h)
2424
- 第四个参数:meta_kernel_fn,即 Kernel 函数名,注意此处不加模板参数,如`my_namespace::SoftmaxKernel`
2525
- 不定长数据类型参数:C++的基础数据类型或飞桨定义的`phi::dtype::float16`、`phi::dtype::bfloat16`、`phi::dtype::complex`等类型,请参照[data_type.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/data_type.h)
2626
- 末尾:固定为函数体,其中可按需对 Kernel 进行必要设置,如果没有,保留`{}`。

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
@@ -20,7 +20,7 @@ Explanation:
2020
- Name of the macro:`PD_REGISTER_PLUGIN_KERNEL`
2121
- First parameter:kernel_name,which is the same both inside and outside. You can refer to registration names of the same kernel functions of CPU, such as `softmax`.
2222
- Second parameter:backend,which can be customized. But its name must be the same as that of the custom runtime, such as `Ascend910`.
23-
- Third parameter:layout,the enumeration of `DataLayout`. For the setting, please refer to [layout.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/layout.h)
23+
- Third parameter:layout,the enumeration of `DataLayout`. For the setting, please refer to [layout.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/common/layout.h)
2424
- Fourth parameter:meta_kernel_fn,the name of a kernel function. Here, the template parameter is not included, such as `my_namespace::SoftmaxKernel`.
2525
- Variable-length data type parameter: includes basic C++ data types or types defined by PaddlePaddle like `phi::dtype::float16`、`phi::dtype::bfloat16`、`phi::dtype::complex`. You can refer to [data_type.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/data_type.h)
2626
- End:the function body. You can set the kernel if necessary. If not, keep `{}`.

docs/dev_guides/custom_device_docs/custom_kernel_docs/tensor_api_cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,5 +186,5 @@
186186
- `DDim`:请参照[ddim.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/core/ddim.h)
187187
- `LoD`:请参照[lod_utils.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/core/lod_utils.h)
188188
- `DataType`:请参照[data_type.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/data_type.h)
189-
- `DataLayout`:请参照[layout.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/layout.h)
189+
- `DataLayout`:请参照[layout.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/common/layout.h)
190190
- `Place`:请参照[place.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/place.h)

docs/dev_guides/custom_device_docs/custom_kernel_docs/tensor_api_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,5 +186,5 @@ All element data of `DenseTensor` are stored in contiguous memory, and you can r
186186
- `DDim`:Please refer to [ddim.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/core/ddim.h)
187187
- `LoD`:Please refer to [lod_utils.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/core/lod_utils.h)
188188
- `DataType`:Please refer to [data_type.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/data_type.h)
189-
- `DataLayout`:Please refer to [layout.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/layout.h)
189+
- `DataLayout`:Please refer to [layout.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/common/layout.h)
190190
- `Place`:Please refer to [place.h](https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/common/place.h)

0 commit comments

Comments
 (0)