Skip to content

Commit 60beaad

Browse files
authored
del typos for R, add infor (#7589)
1 parent f7ce798 commit 60beaad

File tree

16 files changed

+19
-30
lines changed

16 files changed

+19
-30
lines changed

_typos.toml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ Moible = "Moible"
3737
Operaton = "Operaton"
3838
Optimizaing = "Optimizaing"
3939
Optimzier = "Optimzier"
40-
REGISTE = "REGISTE"
41-
Reivew = "Reivew"
42-
Reuqest = "Reuqest"
4340
Setment = "Setment"
4441
Similarily = "Similarily"
4542
Simle = "Simle"
@@ -99,6 +96,7 @@ fundemental = "fundemental"
9996
funtion = "funtion"
10097
ilter = "ilter"
10198
inferface = "inferface"
99+
infor = "infor"
102100
instert = "instert"
103101
instrinsics = "instrinsics"
104102
interchangable = "interchangable"
@@ -135,15 +133,6 @@ overrided = "overrided"
135133
overwrited = "overwrited"
136134
porcess = "porcess"
137135
processer = "processer"
138-
recevied = "recevied"
139-
recomment = "recomment"
140-
registerd = "registerd"
141-
registring = "registring"
142-
reivew = "reivew"
143-
relase = "relase"
144-
requirments = "requirments"
145-
resut = "resut"
146-
resuts = "resuts"
147136
sacle = "sacle"
148137
samle = "samle"
149138
satifies = "satifies"

docs/api/gen_alias_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def transform_file_to_api(self, file_path, api_last_name):
121121
return api
122122

123123
# find the shortest path api which not starts with paddle.fluid
124-
def _choose_recomment_api(self, api_list):
124+
def _choose_recommend_api(self, api_list):
125125
min_len = len(api_list[0].split("."))
126126
rec_api = api_list[0]
127127
for api in api_list:
@@ -135,7 +135,7 @@ def sort_alias_name(self, api_list):
135135
real_api = self._choose_real_api(api_list)
136136
api_list.remove(real_api)
137137

138-
rec_api = self._choose_recomment_api(api_list)
138+
rec_api = self._choose_recommend_api(api_list)
139139
api_list.remove(rec_api)
140140

141141
# sort others api by path length

docs/design/mkldnn/acquire_api/acquire_api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Having memory objects and computational primitive we may trigger its execution .
7070
#### 5. Registering MKL-DNN memory format in corresponding Tensor
7171
Last step is to register MKL-DNN output memory object format inside of Output tensor eg. set Tensor::format_ to MKL-DNN enum that corresponds the way Tensor data is arranged (NCHW, NCHW16C etc.) This enum can be taken from dst memory object (wrapper to Output tensor) in Forward pass or from diff_src memory object (wrapper to X_grad Tensor).
7272

73-
Example of registring MKL-DNN format in output tensor:
73+
Example of registering MKL-DNN format in output tensor:
7474

7575
out->set_layout(framework::DataLayout::kMKLDNN);
7676
out->set_format(platform::GetMKLDNNFormat(*dst_memory));

docs/design/mkldnn/gru/gru.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ oneDNN `GRU` operator is based on Paddle Paddle `fusion_gru` operator. It uses p
9595
* PaddlePaddle Input LoD -> oneDNN TNC/NTC\
9696
Every time before executing `GRU`, each batch represented by PP tensor has to be converted into oneDNN tensor representation. It is done first by calculating length of the longest sentence in a batch to get `T` dimension and then creating oneDNN memory (or getting it from oneDNN cache). After that, based on the memory format chosen by oneDNN GRU primitive: `TNC` or `NTC` correct custom reorder is called.\
9797
\
98-
Because oneDNN assumes that all sentences are of equal length, before reorder, whole memory is set to 0 to add padding. Placement of this padding depends also on computation direction that is defined by `is_reverse` attribute. To get correct resuts, if computation is performed from left to right, the padding has to be on the right side of words. Otherwise, for right to left computation, it has to be on the left side.
98+
Because oneDNN assumes that all sentences are of equal length, before reorder, whole memory is set to 0 to add padding. Placement of this padding depends also on computation direction that is defined by `is_reverse` attribute. To get correct results, if computation is performed from left to right, the padding has to be on the right side of words. Otherwise, for right to left computation, it has to be on the left side.
9999
![](images/input_is_reverse.svg)
100100

101101
* PaddlePaddle WeightX -> oneDNN WeightX\

docs/design/others/releasing_process.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ PaddlePaddle 开发过程使用[git-flow](http://nvie.com/posts/a-successful-git
4343
* 其他用户的 fork 版本库并不需要严格遵守[git-flow](http://nvie.com/posts/a-successful-git-branching-model/)分支规范,但所有 fork 的版本库的所有分支都相当于特性分支。
4444
* 建议,开发者 fork 的版本库使用`develop`分支同步主版本库的`develop`分支
4545
* 建议,开发者 fork 的版本库中,再基于`develop`版本 fork 出自己的功能分支。
46-
* 当功能分支开发完毕后,向 PaddlePaddle 的主版本库提交`Pull Reuqest`,进而进行代码评审。
46+
* 当功能分支开发完毕后,向 PaddlePaddle 的主版本库提交`Pull Request`,进而进行代码评审。
4747
* 在评审过程中,开发者修改自己的代码,可以继续在自己的功能分支提交代码。
4848
4949
* BugFix 分支也是在开发者自己的 fork 版本库维护,与功能分支不同的是,BugFix 分支需要分别给主版本库的`master`、`develop`与可能有的`release/版本号`分支,同时提起`Pull Request`。

docs/design/phi/design_cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1670,7 +1670,7 @@ Fc(const Context& dev_ctx, const Tensor& x, const Tensor& w, const Tensor& b, Te
16701670
phi::add<T, Context>(phi::mul<T,Context>(x, w), b, out);
16711671
}
16721672

1673-
PT_REGISTE_KERNEL("fc", Fc, ...)
1673+
PT_REGISTER_KERNEL("fc", Fc, ...)
16741674
```
16751675
16761676
mul 和 add 操作的拼接,代码量很少,再加一个注册声明。

docs/design/phi/kernel_migrate_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ Differences include:
304304
1. The name of the registered macro is different, here is `PD_REGISTER_PLUGIN_KERNEL`.
305305
2. The name of the Backend is the name of the CustomDevice registered by the user, here is `ascend`.
306306
307-
The kernel that registerd by REGISTER_OP_KERNEL_WITH_CUSTOM_TYPE in Fluid is also registered using `PD_REGISTER_KERNEL` or `PD_REGISTER_PLUGIN_KERNEL` in PHI. It should be noted that if there are two types of kernel template parameters registered in fluid, since the kernel registered in PHI only supports one type, the first type is used in PHI registration. For example, the example under fluid:
307+
The kernel that registered by REGISTER_OP_KERNEL_WITH_CUSTOM_TYPE in Fluid is also registered using `PD_REGISTER_KERNEL` or `PD_REGISTER_PLUGIN_KERNEL` in PHI. It should be noted that if there are two types of kernel template parameters registered in fluid, since the kernel registered in PHI only supports one type, the first type is used in PHI registration. For example, the example under fluid:
308308
309309
```c++
310310

docs/dev_guides/git_guides/code_review_en.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Code Reivew promise
1+
# Code Review promise
22

33
In order that reviewers focus on code in the code review,please follow these rules every time you submit your code:
44

@@ -8,11 +8,11 @@ In order that reviewers focus on code in the code review,please follow these rul
88

99
In addition,please follow the following regulations in response to the suggestion of reviewers:
1010

11-
1)A reply to every comment of reviewersIt's a fundamental complimentary conduct in open source community.An expression of appreciation is a need for help from others):
11+
1)A reply to every comment of reviewers(It's a fundamental complimentary conduct in open source community.An expression of appreciation is a need for help from others):
1212

1313
- If you adopt the suggestion of reviewer and make a modification accordingly, it's courteous to reply with a simple `Done` .
1414

15-
- Please clarify your reason to the disagreenment
15+
- Please clarify your reason to the disagreement
1616

1717
2)If there are many suggestions
1818

docs/dev_guides/op_optimization/kernel_primitive_api/add_example_cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ __device__ void ElementwiseAddImpl(InT *in0, InT * in1, OutT * out, OpFunc func,
3939
ReadData<InT, InT, VecSize, 1, 1, IsBoundary>(arg0, in0, num);
4040
ReadData<InT, InT, VecSize, 1, 1, IsBoundary>(arg1, in1, num);
4141
42-
// compute resut[i] = args[i] + arg1[i]
42+
// compute result[i] = args[i] + arg1[i]
4343
ElementwiseBinary<InT, OutT, VecSize, 1, 1, OpFunc>(result, arg0, arg1, func);
4444
4545
// write data

docs/dev_guides/op_optimization/kernel_primitive_api/add_example_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ __device__ void ElementwiseAddImpl(InT *in0, InT * in1, OutT * out, OpFunc func,
3838
ReadData<InT, InT, VecSize, 1, 1, IsBoundary>(arg0, in0, num);
3939
ReadData<InT, InT, VecSize, 1, 1, IsBoundary>(arg1, in1, num);
4040
41-
// compute resut[i] = args[i] + arg1[i]
41+
// compute result[i] = args[i] + arg1[i]
4242
ElementwiseBinary<InT, OutT, VecSize, 1, 1, OpFunc>(result, arg0, arg1, func);
4343
4444
// write data

0 commit comments

Comments
 (0)