File tree Expand file tree Collapse file tree 4 files changed +6
-10
lines changed
style_guide_and_references Expand file tree Collapse file tree 4 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ CANN = "CANN"
1919Clas = " Clas"
2020arange = " arange"
2121unsupport = " unsupport"
22+ Nervana = " Nervana"
2223
2324# These words need to be fixed
2425Accuray = " Accuray"
@@ -41,8 +42,6 @@ Interfce = "Interfce"
4142Kernal = " Kernal"
4243Learing = " Learing"
4344Moible = " Moible"
44- Nervana = " Nervana"
45- Numberic = " Numberic"
4645Operaton = " Operaton"
4746Optimizaing = " Optimizaing"
4847Optimzier = " Optimzier"
@@ -169,9 +168,6 @@ metrices = "metrices"
169168muliply = " muliply"
170169mulitplying = " mulitplying"
171170mutbale = " mutbale"
172- neeeded = " neeeded"
173- nessesary = " nessesary"
174- numberic = " numberic"
175171occurence = " occurence"
176172opeartor = " opeartor"
177173opeartors = " opeartors"
Original file line number Diff line number Diff 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).
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ dst - the address of destination device memory
232232
233233src - 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
Original file line number Diff line number Diff 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
181181def 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
You can’t perform that action at this time.
0 commit comments