Skip to content

Commit 268c4f0

Browse files
authored
[CodeStyle][Typos][N-[1-5]]Fix typos('Nervana''Numberic''nessesary''neeeded''numberic') (#7574)
1 parent ebf6ecb commit 268c4f0

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

_typos.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ CANN = "CANN"
1919
Clas = "Clas"
2020
arange = "arange"
2121
unsupport = "unsupport"
22+
Nervana = "Nervana"
2223

2324
# These words need to be fixed
2425
Accuray = "Accuray"
@@ -41,8 +42,6 @@ Interfce = "Interfce"
4142
Kernal = "Kernal"
4243
Learing = "Learing"
4344
Moible = "Moible"
44-
Nervana = "Nervana"
45-
Numberic = "Numberic"
4645
Operaton = "Operaton"
4746
Optimizaing = "Optimizaing"
4847
Optimzier = "Optimzier"
@@ -169,9 +168,6 @@ metrices = "metrices"
169168
muliply = "muliply"
170169
mulitplying = "mulitplying"
171170
mutbale = "mutbale"
172-
neeeded = "neeeded"
173-
nessesary = "nessesary"
174-
numberic = "numberic"
175171
occurence = "occurence"
176172
opeartor = "opeartor"
177173
opeartors = "opeartors"

docs/design/network/deep_speech_2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Key ingredients about the layers:
137137
- Bi-direcitional + without row convolution: if we don't care about the inference latency.
138138
- **Row convolution**:
139139
- For looking only a few steps ahead into the feature, instead of looking into a whole sequence in bi-directional RNNs.
140-
- Not nessesary if with bi-direcitional RNNs.
140+
- Not necessary if with bi-direcitional RNNs.
141141
- "**Row**" means convolutions are done within each frequency dimension (row), and no convolution kernels shared across.
142142
- **Batch Normalization Layers**:
143143
- Added to all above layers (except for data and loss layer).

docs/dev_guides/custom_device_docs/memory_api_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ dst - the address of destination device memory
232232
233233
src - the address of source host memory
234234
235-
size - the size of memory neeeded to be copied (in byte)
235+
size - the size of memory needed to be copied (in byte)
236236
237237
## async_memory_copy_d2h 【optional】
238238

docs/dev_guides/style_guide_and_references/type_annotations_specification_cn.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,18 +176,18 @@ if TYPE_CHECKING:
176176
from paddle import Tensor
177177

178178
# TensorLike 定义如下
179-
# TensorLike: TypeAlias = Union[npt.NDArray[Any], "Tensor", Numberic]
179+
# TensorLike: TypeAlias = Union[npt.NDArray[Any], "Tensor", Numeric]
180180

181181
def add(a: Tensor, b: TensorLike) -> Tensor:
182182
if isinstance(b, np.ndarray):
183183
return dispatch_np_add(a, b)
184184
elif isinstance(b, paddle.Tensor):
185185
return dispatch_paddle_add(a, b)
186186
else:
187-
return dispatch_numberic_add(a, b)
187+
return dispatch_numeric_add(a, b)
188188
```
189189

190-
这里 `TensorLike` 是一个通用类型,包含了 `np.ndarray``paddle.Tensor``Numberic` 三种类型,因此在实现中也应该考虑到这三种类型的输入。
190+
这里 `TensorLike` 是一个通用类型,包含了 `np.ndarray``paddle.Tensor``Numeric` 三种类型,因此在实现中也应该考虑到这三种类型的输入。
191191

192192
### 使用更加明确的类型以提供更好的提示效果
193193

0 commit comments

Comments
 (0)