diff --git a/_typos.toml b/_typos.toml index a2183d6c95d..4c4cc9b1c66 100644 --- a/_typos.toml +++ b/_typos.toml @@ -18,6 +18,7 @@ extend-ignore-re = [ CANN = "CANN" Clas = "Clas" arange = "arange" +unsupport = "unsupport" # These words need to be fixed Accuray = "Accuray" @@ -67,7 +68,6 @@ Traning = "Traning" Transfomed = "Transfomed" Tthe = "Tthe" Ture = "Ture" -Useage = "Useage" Wether = "Wether" accordding = "accordding" accoustic = "accoustic" @@ -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" diff --git a/docs/api/gen_alias_api.py b/docs/api/gen_alias_api.py index 65820f0ec63..0a6d3b1393e 100644 --- a/docs/api/gen_alias_api.py +++ b/docs/api/gen_alias_api.py @@ -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: diff --git a/docs/api/gen_doc.py b/docs/api/gen_doc.py index cdade62f415..d0ffb25fa0e 100755 --- a/docs/api/gen_doc.py +++ b/docs/api/gen_doc.py @@ -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): diff --git a/docs/design/dist_train/distributed_architecture.md b/docs/design/dist_train/distributed_architecture.md index 700de36c3ee..32fff6ea53b 100644 --- a/docs/design/dist_train/distributed_architecture.md +++ b/docs/design/dist_train/distributed_architecture.md @@ -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 diff --git a/docs/dev_guides/custom_device_docs/ccl_api_cn.md b/docs/dev_guides/custom_device_docs/ccl_api_cn.md index bd757990b03..84ddc3a3d29 100644 --- a/docs/dev_guides/custom_device_docs/ccl_api_cn.md +++ b/docs/dev_guides/custom_device_docs/ccl_api_cn.md @@ -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】 diff --git a/docs/guides/paddle_v3_features/sot_cn.md b/docs/guides/paddle_v3_features/sot_cn.md index 94abb970c86..36d4d6da6ac 100644 --- a/docs/guides/paddle_v3_features/sot_cn.md +++ b/docs/guides/paddle_v3_features/sot_cn.md @@ -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 表示。