Skip to content

Commit 17d29a6

Browse files
committed
fix: correct typos I-10 to I-16 (infor→info etc.)
1 parent 51a16a6 commit 17d29a6

File tree

9 files changed

+9
-16
lines changed

9 files changed

+9
-16
lines changed

_typos.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,6 @@ functinal = "functinal"
5656
fundemental = "fundemental"
5757
funtion = "funtion"
5858
ilter = "ilter"
59-
inferface = "inferface"
60-
infor = "infor"
61-
instert = "instert"
62-
instrinsics = "instrinsics"
63-
interchangable = "interchangable"
64-
intializers = "intializers"
65-
intput = "intput"
6659
lable = "lable"
6760
learing = "learing"
6861
legth = "legth"

docs/api/copy_codes_from_en_doc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def find_codeblock_needed(cf_info):
237237
return None
238238

239239

240-
def instert_codes_into_cn_rst_if_need(cnrstfilename):
240+
def insert_codes_into_cn_rst_if_need(cnrstfilename):
241241
"""
242242
Analyse the cn rst file, if need, extract code-blocks from en docstring.
243243
"""
@@ -290,7 +290,7 @@ def instert_codes_into_cn_rst_if_need(cnrstfilename):
290290

291291

292292
def filter_all_files(
293-
rootdir, ext="_cn.rst", action=instert_codes_into_cn_rst_if_need
293+
rootdir, ext="_cn.rst", action=insert_codes_into_cn_rst_if_need
294294
):
295295
"""
296296
find all the _en.html file, and do the action.

docs/design/data_type/float16.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ To support the above features, two fundamental conversion functions are provided
9393
float16 float_to_half_rn(float f); // convert to half precision in round-to-nearest-even mode
9494
float half_to_float(float16 h);
9595
```
96-
which provides one-to-one conversion between float32 and float16. These twos functions will do different conversion routines based on the current hardware. CUDA/ARM instrinsics will be used when the corresponding hardware is available. If the hardware or compiler level does not support float32 to float16 conversion, software emulation will be performed to do the conversion.
96+
which provides one-to-one conversion between float32 and float16. These twos functions will do different conversion routines based on the current hardware. CUDA/ARM intrinsics will be used when the corresponding hardware is available. If the hardware or compiler level does not support float32 to float16 conversion, software emulation will be performed to do the conversion.
9797

9898
## float16 inference
9999
In Fluid, a neural network is represented as a protobuf message called [ProgramDesc](https://github.com/PaddlePaddle/docs/blob/develop/docs/design/concepts/program.md), whose Python wrapper is a [Program](https://github.com/PaddlePaddle/docs/blob/develop/docs/design/modules/python_api.md#program). The basic structure of a program is some nested [blocks](https://github.com/PaddlePaddle/docs/blob/develop/docs/design/modules/python_api.md#block), where each block consists of some [variable](https://github.com/PaddlePaddle/docs/blob/develop/docs/design/modules/python_api.md#variable) definitions and a sequence of [operators](https://github.com/PaddlePaddle/docs/blob/develop/docs/design/modules/python_api.md#operator). An [executor](https://github.com/PaddlePaddle/docs/blob/develop/docs/design/concepts/executor.md) will run a given program desc by executing the sequence of operators in the entrance block of the program one by one.

docs/design/modules/infer_var_type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The variable type will be constant at runtime. Every variable's type can either
1010

1111
## Proposed Solution
1212

13-
The `InferVarType` is a compile-time function which is registered to each operator. The inferface of that function is:
13+
The `InferVarType` is a compile-time function which is registered to each operator. The interface of that function is:
1414

1515

1616
```c++

docs/design/others/graph.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ For each parameter, like W and b created by `layer.fc`, marked as double circles
5656

5757
## Block and Graph
5858

59-
The word block and graph are interchangable in the desgin of PaddlePaddle. A [Block](https://github.com/PaddlePaddle/Paddle/pull/3708) is a metaphore of the code and local variables in a pair of curly braces in programming languages, where operators are like statements or instructions. A graph of operators and variables is a representation of the block.
59+
The word block and graph are interchangeable in the desgin of PaddlePaddle. A [Block](https://github.com/PaddlePaddle/Paddle/pull/3708) is a metaphore of the code and local variables in a pair of curly braces in programming languages, where operators are like statements or instructions. A graph of operators and variables is a representation of the block.
6060

6161
A Block keeps operators in an array `BlockDesc::ops`
6262

docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.FractionalMaxPool2d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PyTorch 参数更多,具体如下:
2424
### 转写示例
2525
#### output_ratio:目标输出比例
2626
```python
27-
# 假设 intput 的 with=7, height=7,
27+
# 假设 input 的 with=7, height=7,
2828
# output_ratio = 0.75, 则目标 output 的 width = int(7*0.75) = 5, height = int(7*0.75) = 5
2929
# Pytorch 写法
3030
torch.nn.FractionalMaxPool2d(2, output_ratio=[0.75, 0.75], return_indices=True)

docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.FractionalMaxPool3d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PyTorch 参数更多,具体如下:
2424
### 转写示例
2525
#### output_ratio:目标输出比例
2626
```python
27-
# 假设 intput 的 depth=7, with=7, height=7,
27+
# 假设 input 的 depth=7, with=7, height=7,
2828
# output_ratio = 0.75, 则目标 output 的 depth = int(7*0.75) = 5, width = int(7*0.75) = 5, height = int(7*0.75) = 5
2929
# Pytorch 写法
3030
torch.nn.FractionalMaxPool3d(2, output_ratio=[0.75, 0.75, 0.75], return_indices=True)

docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.fractional_max_pool2d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ PyTorch 参数更多,具体如下:
2525
### 转写示例
2626
#### output_ratio:目标输出比例
2727
```python
28-
# 假设 intput 的 with=7, height=7,
28+
# 假设 input 的 with=7, height=7,
2929
# output_ratio = 0.75, 则目标 output 的 width = int(7*0.75) = 5, height = int(7*0.75) = 5
3030
# Pytorch 写法
3131
torch.nn.functional.fractional_max_pool2d(input, 2, output_ratio=[0.75, 0.75], return_indices=True)

docs/guides/model_convert/convert_from_pytorch/api_difference/torch_more_args/torch.nn.functional.fractional_max_pool3d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ PyTorch 参数更多,具体如下:
2525
### 转写示例
2626
#### output_ratio:目标输出比例
2727
```python
28-
# 假设 intput 的 depth=7, with=7, height=7,
28+
# 假设 input 的 depth=7, with=7, height=7,
2929
# output_ratio = 0.75, 则目标 output 的 depth = int(7*0.75) = 5, width = int(7*0.75) = 5, height = int(7*0.75) = 5
3030
# Pytorch 写法
3131
torch.nn.functional.fractional_max_pool3d(input, 2, output_ratio=[0.75, 0.75, 0.75], return_indices=True)

0 commit comments

Comments
 (0)