Skip to content

Commit bf0e227

Browse files
authored
[CodeStyle][Typos][U-[1-5]] Fix typo(Useage,unqiue,unsupport,utill,updte) (#7563)
* [CodeStyle][Typos][U-[1-5]]Fix typos('Useage''unqiue''unsupport''utill''updte') * [CodeStyle][Typos][U-[1-5]]Fix typos('unsupport') * [CodeStyle][Typos][U-[1-5]]Move typos('unsupport')
1 parent 4eb4ed1 commit bf0e227

File tree

6 files changed

+7
-11
lines changed

6 files changed

+7
-11
lines changed

_typos.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ extend-ignore-re = [
1818
CANN = "CANN"
1919
Clas = "Clas"
2020
arange = "arange"
21+
unsupport = "unsupport"
2122

2223
# These words need to be fixed
2324
Accuray = "Accuray"
@@ -67,7 +68,6 @@ Traning = "Traning"
6768
Transfomed = "Transfomed"
6869
Tthe = "Tthe"
6970
Ture = "Ture"
70-
Useage = "Useage"
7171
Wether = "Wether"
7272
accordding = "accordding"
7373
accoustic = "accoustic"
@@ -235,10 +235,6 @@ transfered = "transfered"
235235
trasformed = "trasformed"
236236
treshold = "treshold"
237237
trian = "trian"
238-
unqiue = "unqiue"
239-
unsupport = "unsupport"
240-
updte = "updte"
241-
utill = "utill"
242238
warpped = "warpped"
243239
wether = "wether"
244240
wiht = "wiht"

docs/api/gen_alias_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def generator_alias_api(self):
166166

167167
if __name__ == "__main__":
168168
if len(sys.argv) != 2:
169-
print("Useage:")
169+
print("Usage:")
170170
print("python3 gen_alias_api.py path-to-paddle-root")
171171
sys.exit(1)
172172
else:

docs/api/gen_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ def shortest(api_info):
943943

944944
def insert_suggested_names():
945945
"""
946-
add suggested_name field, updte the doc_filename, and sort the all_names and api_sketch_names.
946+
add suggested_name field, update the doc_filename, and sort the all_names and api_sketch_names.
947947
"""
948948

949949
def sort_name_list(api_names):

docs/design/dist_train/distributed_architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Below are the steps that are followed :
118118
DataParallelism type for example, it removes the optimization operators and add a `send` OP to the
119119
"trainer" role, then add the optimization operators to the parameter server role within the `recv` OP.
120120
1. Dispatch the partitioned graph to different `RemoteExecutor` in the cluster.
121-
1. `RemoteExecutor` on each node run the received `ProgramDesc` utill the end.
121+
1. `RemoteExecutor` on each node run the received `ProgramDesc` until the end.
122122

123123

124124
### RemoteExecutor

docs/dev_guides/custom_device_docs/ccl_api_cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ C_Status (*xccl_get_unique_id)(C_CCLRootId* unique_id)
3030

3131
### 参数
3232

33-
unique_id - 插件需要填充的 unqiue_id 对象。
33+
unique_id - 插件需要填充的 unique_id 对象。
3434

3535
## xccl_comm_init_rank 【optional】
3636

docs/guides/paddle_v3_features/sot_cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
```python
1717
# 一个简单的 Case 如下:
1818
@paddle.jit.to_static()
19-
def unsupport_func(x):
19+
def unsupported_func(x):
2020
x = 2 * x
2121
t = x.numpy() # t 依赖了 x 的值,依赖静态图的执行结果
2222
t = np.ones(t)
2323
return paddle.to_tensor(t)
2424

2525
x = paddle.to_tensor([2])
26-
unsupport_func(x) # raise error
26+
unsupported_func(x) # raise error
2727
```
2828

2929
这里的 `np.ones` 因为动转静的使用,上述的 `x``t` 其实都是 `pir.Value` 类型(即 PIR 中的组网占位符),传入到 `np.ones` 中是无法获取到具体的值的,因此调用 `.numpy()` 接口时会报错。而这样的 Case 也是 AST 动转静理论上无法解决的问题,本质原因是,AST 必须要求转写的函数可以**被整图的**静态图 IR 表示。

0 commit comments

Comments
 (0)