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 @@ -19,6 +19,7 @@ CANN = "CANN"
Clas = "Clas"
arange = "arange"
unsupport = "unsupport"
Nervana = "Nervana"

# These words need to be fixed
Accuray = "Accuray"
Expand All @@ -41,8 +42,6 @@ Interfce = "Interfce"
Kernal = "Kernal"
Learing = "Learing"
Moible = "Moible"
Nervana = "Nervana"
Numberic = "Numberic"
Operaton = "Operaton"
Optimizaing = "Optimizaing"
Optimzier = "Optimzier"
Expand Down Expand Up @@ -169,9 +168,6 @@ metrices = "metrices"
muliply = "muliply"
mulitplying = "mulitplying"
mutbale = "mutbale"
neeeded = "neeeded"
nessesary = "nessesary"
numberic = "numberic"
occurence = "occurence"
opeartor = "opeartor"
opeartors = "opeartors"
Expand Down
2 changes: 1 addition & 1 deletion docs/design/network/deep_speech_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Key ingredients about the layers:
- Bi-direcitional + without row convolution: if we don't care about the inference latency.
- **Row convolution**:
- For looking only a few steps ahead into the feature, instead of looking into a whole sequence in bi-directional RNNs.
- Not nessesary if with bi-direcitional RNNs.
- Not necessary if with bi-direcitional RNNs.
- "**Row**" means convolutions are done within each frequency dimension (row), and no convolution kernels shared across.
- **Batch Normalization Layers**:
- Added to all above layers (except for data and loss layer).
Expand Down
2 changes: 1 addition & 1 deletion docs/dev_guides/custom_device_docs/memory_api_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ dst - the address of destination device memory

src - the address of source host memory

size - the size of memory neeeded to be copied (in byte)
size - the size of memory needed to be copied (in byte)

## async_memory_copy_d2h 【optional】

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,18 +176,18 @@ if TYPE_CHECKING:
from paddle import Tensor

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

def add(a: Tensor, b: TensorLike) -> Tensor:
if isinstance(b, np.ndarray):
return dispatch_np_add(a, b)
elif isinstance(b, paddle.Tensor):
return dispatch_paddle_add(a, b)
else:
return dispatch_numberic_add(a, b)
return dispatch_numeric_add(a, b)
```

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

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

Expand Down