Skip to content

Commit b0f971e

Browse files
authored
[CodeStyle][Typos][B-[1-5]] Fix typo(startswith B)
1 parent e212cf3 commit b0f971e

File tree

12 files changed

+16
-23
lines changed

12 files changed

+16
-23
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# virtualenv
77
venv/
88
ENV/
9+
.venv/
910

1011
# Compiled Python files
1112
__pycache__/

_typos.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ Archetecture = "Archetecture"
2626
Asynchoronous = "Asynchoronous"
2727
Attrbute = "Attrbute"
2828
Attribtue = "Attribtue"
29-
Bounary = "Bounary"
3029
Classfication = "Classfication"
3130
Comparision = "Comparision"
3231
Contructing = "Contructing"
@@ -83,13 +82,6 @@ Wether = "Wether"
8382
accordding = "accordding"
8483
accoustic = "accoustic"
8584
accpetance = "accpetance"
86-
baisc = "baisc"
87-
basci = "basci"
88-
beacuse = "beacuse"
89-
bechmark = "bechmark"
90-
benckmark = "benckmark"
91-
boradcast = "boradcast"
92-
brodcast = "brodcast"
9385
caculate = "caculate"
9486
cantains = "cantains"
9587
choosen = "choosen"

docs/api/paddle/incubate/autograd/Overview_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ _________________________
225225
- 输入数据不支持可变形状写法,如[None, 1]、[-1, 1]。如果训练数据形状是变化的,一种可行 Workaround 方案是根据不同数据形状创建不同网络,即在组网阶段将形状固定,具体参考附 1 代码。
226226
- 我们尚未在 windows 平台进行完整验证和支持。
227227
- 目前只支持使用 default_main_program 和 default_startup_program。
228-
- boradcast 语意尚未完整支持。
228+
- broadcast 语意尚未完整支持。
229229

230230

231231
.. _autograd_design_details:

docs/design/others/graph_survey.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ Expression pred = W * in;
168168
Expression loss = square(pred - label);
169169
```
170170

171-
The input data and parameter are also represented by Expression. Every basci Expression corresponds to a Node. And input data is also a Node.
171+
The input data and parameter are also represented by Expression. Every basic Expression corresponds to a Node. And input data is also a Node.
172172

173-
Expression has a data member ComputationGraph, and ComputationGraph will be modified in users' configuring process. Expression can be a running target, beacuse Expression contains all dependency.
173+
Expression has a data member ComputationGraph, and ComputationGraph will be modified in users' configuring process. Expression can be a running target, because Expression contains all dependency.
174174

175175

176176
Here is a detailed example:

docs/design/phi/design_cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ enum class Backend : uint8_t {
253253
NUM_BACKENDS,
254254
255255
/**
256-
* [ Why we need ALL in baisc kernel key member? ]
256+
* [ Why we need ALL in basic kernel key member? ]
257257
*
258258
* For Tensor, ALL represents an illegal Backend, but for Kernel, some
259259
* kernels may be device-independent by nature, such as reshape;
@@ -382,7 +382,7 @@ enum class DataType {
382382
BFLOAT16,
383383
384384
NUM_DATA_TYPES,
385-
// See Note [ Why we need ALL in baisc kernel key member? ]
385+
// See Note [ Why we need ALL in basic kernel key member? ]
386386
ALL_DTYPE = UNDEFINED,
387387
};
388388
```

docs/design/phi/design_en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ enum class Backend : uint8_t {
253253
NUM_BACKENDS,
254254
255255
/**
256-
* [ Why we need ALL in baisc kernel key member? ]
256+
* [ Why we need ALL in basic kernel key member? ]
257257
*
258258
* For Tensor, ALL represents an illegal Backend, but for Kernel, some
259259
* kernels may be device-independent by nature, such as reshape;
@@ -382,7 +382,7 @@ enum class DataType {
382382
BFLOAT16,
383383
384384
NUM_DATA_TYPES,
385-
// See Note [ Why we need ALL in baisc kernel key member? ]
385+
// See Note [ Why we need ALL in basic kernel key member? ]
386386
ALL_DTYPE = UNDEFINED,
387387
};
388388
```

docs/dev_guides/api_contributing_guides/api_design_guidelines_standard_cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@
629629
| 最近邻回归 | nearest neighbor regression | |
630630
| 最近邻 | nearest neighbor | |
631631
| 验证集 | validation set | |
632-
| 基准 | bechmark | |
632+
| 基准 | benchmark | |
633633
| 基准 | baseline | |
634634
| 点估计 | point estimator | |
635635
| 估计量 | estimator | |

docs/dev_guides/op_optimization/kernel_primitive_api/io_api_cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ __device__ void ReadDataBc(T* dst, const T* src,
7979

8080
### 函数说明
8181

82-
将需要进行 brodcast 的 2D 数据按照 T 类型从全局内存 src 中读取到寄存器 dst 中,其中 src 为原始输入数据指针,根据 config 计算当前输出数据对应的输入数据坐标,并将坐标对应的数据读取到寄存器中。</br>
82+
将需要进行 broadcast 的 2D 数据按照 T 类型从全局内存 src 中读取到寄存器 dst 中,其中 src 为原始输入数据指针,根据 config 计算当前输出数据对应的输入数据坐标,并将坐标对应的数据读取到寄存器中。</br>
8383
数据处理过程如下:</br>
8484
![ReadDataBc](./images/io_read_data_broadcast_stride.png)
8585

@@ -116,7 +116,7 @@ __device__ void ReadDataBc(T* dst, const T* src,
116116

117117
### 函数说明
118118

119-
将需要进行 brodcast 的 1D 数据按照 T 类型从全局内存 src 中读取到寄存器 dst 中,其中 src 为原始输入数据指针,根据 config 计算当前输出数据对应的输入数据坐标,并将坐标对应的数据读取到寄存器中。</br>
119+
将需要进行 broadcast 的 1D 数据按照 T 类型从全局内存 src 中读取到寄存器 dst 中,其中 src 为原始输入数据指针,根据 config 计算当前输出数据对应的输入数据坐标,并将坐标对应的数据读取到寄存器中。</br>
120120
数据处理过程如下:</br>
121121
![ReadDataBc](./images/io_read_data_broadcast.png)
122122

docs/dev_guides/op_optimization/kernel_primitive_api/io_api_en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ __device__ void ReadDataBc(T* dst, const T* src,
7777

7878
### Description
7979

80-
Read the 2D data that needs to be brodcast from the global memory src into the register dst according to the T type, where src is the original input data pointer, calculate the input data coordinates corresponding to the current output data according to config, and read the data corresponding to the coordinates to the register. </br>
80+
Read the 2D data that needs to be broadcast from the global memory src into the register dst according to the T type, where src is the original input data pointer, calculate the input data coordinates corresponding to the current output data according to config, and read the data corresponding to the coordinates to the register. </br>
8181
The data processing process is as follows:</br>
8282
![ReadDataBc](./images/io_read_data_broadcast_stride.png)
8383

@@ -114,7 +114,7 @@ __device__ void ReadDataBc(T* dst, const T* src,
114114

115115
### Description
116116

117-
Read the 1D data that needs to be brodcast from the global memory src into the register dst according to the T type, where src is the original input data pointer, calculate the input data coordinates corresponding to the current output data according to config, and read the data corresponding to the coordinates to the register. </br>
117+
Read the 1D data that needs to be broadcast from the global memory src into the register dst according to the T type, where src is the original input data pointer, calculate the input data coordinates corresponding to the current output data according to config, and read the data corresponding to the coordinates to the register. </br>
118118
The data processing process is as follows:</br>
119119
![ReadDataBc](./images/io_read_data_broadcast.png)
120120

docs/dev_guides/op_optimization/kernel_primitive_api/reduce_example_cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ __global__ void ReduceHigherDimKernel(const Tx* x, Ty* y, ReduceOp reducer,
8484
8585
} else {
8686
87-
// The remaining data is smaller than blockdim.x, IsBounary must be true
87+
// The remaining data is smaller than blockdim.x, IsBoundary must be true
8888
HigherDimImpl<Tx, Ty, MPType, AddFunctor<Tx, Ty>, IdentityFunctor<Tx, Ty>, true>(
8989
x, y, AddFunctor<Tx, Ty>(), IdentityFunctor<Tx, Ty>(), init, reduce_num, left_num, blocking_num);
9090

0 commit comments

Comments
 (0)