Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ extend-ignore-re = [
CANN = "CANN"
Clas = "Clas"
arange = "arange"
unsupport = "unsupport"

# These words need to be fixed
Accuray = "Accuray"
Expand Down Expand Up @@ -67,7 +68,6 @@ Traning = "Traning"
Transfomed = "Transfomed"
Tthe = "Tthe"
Ture = "Ture"
Useage = "Useage"
Wether = "Wether"
accordding = "accordding"
accoustic = "accoustic"
Expand Down Expand Up @@ -235,10 +235,6 @@ transfered = "transfered"
trasformed = "trasformed"
treshold = "treshold"
trian = "trian"
unqiue = "unqiue"
unsupport = "unsupport"
updte = "updte"
utill = "utill"
warpped = "warpped"
wether = "wether"
wiht = "wiht"
Expand Down
2 changes: 1 addition & 1 deletion docs/api/gen_alias_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def generator_alias_api(self):

if __name__ == "__main__":
if len(sys.argv) != 2:
print("Useage:")
print("Usage:")
print("python3 gen_alias_api.py path-to-paddle-root")
sys.exit(1)
else:
Expand Down
2 changes: 1 addition & 1 deletion docs/api/gen_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ def shortest(api_info):

def insert_suggested_names():
"""
add suggested_name field, updte the doc_filename, and sort the all_names and api_sketch_names.
add suggested_name field, update the doc_filename, and sort the all_names and api_sketch_names.
"""

def sort_name_list(api_names):
Expand Down
2 changes: 1 addition & 1 deletion docs/design/dist_train/distributed_architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Below are the steps that are followed :
DataParallelism type for example, it removes the optimization operators and add a `send` OP to the
"trainer" role, then add the optimization operators to the parameter server role within the `recv` OP.
1. Dispatch the partitioned graph to different `RemoteExecutor` in the cluster.
1. `RemoteExecutor` on each node run the received `ProgramDesc` utill the end.
1. `RemoteExecutor` on each node run the received `ProgramDesc` until the end.


### RemoteExecutor
Expand Down
2 changes: 1 addition & 1 deletion docs/dev_guides/custom_device_docs/ccl_api_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ C_Status (*xccl_get_unique_id)(C_CCLRootId* unique_id)

### 参数

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

## xccl_comm_init_rank 【optional】

Expand Down
4 changes: 2 additions & 2 deletions docs/guides/paddle_v3_features/sot_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
```python
# 一个简单的 Case 如下:
@paddle.jit.to_static()
def unsupport_func(x):
def unsupported_func(x):
x = 2 * x
t = x.numpy() # t 依赖了 x 的值,依赖静态图的执行结果
t = np.ones(t)
return paddle.to_tensor(t)

x = paddle.to_tensor([2])
unsupport_func(x) # raise error
unsupported_func(x) # raise error
```

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