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
7 changes: 2 additions & 5 deletions _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
extend-exclude = [
# Skip `Accuray ` check in these files
"docs/practices/cv/3D_image_classification_from_CT_scans.ipynb",

]

[default]
Expand All @@ -23,6 +24,7 @@ Clas = "Clas"
arange = "arange"
unsupport = "unsupport"
Nervana = "Nervana"
datas = "datas"

# These words need to be fixed
Creenshot = "Creenshot"
Expand All @@ -36,11 +38,6 @@ Similarily = "Similarily"
Simle = "Simle"
Sovler = "Sovler"
Successed = "Successed"
dafault = "dafault"
datas = "datas"
decribe = "decribe"
decribes = "decribes"
deocder = "deocder"
desgin = "desgin"
desginated = "desginated"
desigin = "desigin"
Expand Down
4 changes: 2 additions & 2 deletions docs/design/concepts/tensor.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ Before writing code, please make sure you already look through Majel Source Code


### Memory Management
`Allocation` manages a block of memory in device(CPU/GPU). We use `Place` to decribe memory location. The details of memory allocation and deallocation are implemented in `Allocator` and `DeAllocator`. Related low-level API such as `hl_malloc_device()` and `hl_malloc_host()` are provided by Paddle.
`Allocation` manages a block of memory in device(CPU/GPU). We use `Place` to describe memory location. The details of memory allocation and deallocation are implemented in `Allocator` and `DeAllocator`. Related low-level API such as `hl_malloc_device()` and `hl_malloc_host()` are provided by Paddle.

### Dim and Array
#### Dim

`Dim` decribes the dimension information of an array.
`Dim` describes the dimension information of an array.

`DDimVar` is an alias of a specializd class of boost.variant class template.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ PADDLE_ENFORCE_EQ(

```c++
PADDLE_ENFORCE(
tmp == *data_type || *data_type == dafault_data_type,
tmp == *data_type || *data_type == default_data_type,
phi::errors::InvalidArgument(
"The DataType of %s Op's duplicable Variable %s must be "
"consistent. The current variable type is (%s), but the "
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/flags/memory_en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ FLAGS_initial_gpu_memory_in_mb=4096 will allocate 4 GB as initial GPU chunk.
Note
-------
If you set this flag, the memory size set by FLAGS_fraction_of_gpu_memory_to_use will be overrided by this flag, PaddlePaddle will allocate the initial gpu memory with size specified by this flag.
If you don't set this flag, the dafault value 0 will disable this GPU memory strategy. PaddlePaddle will use FLAGS_fraction_of_gpu_memory_to_use to allocate the initial GPU chunk.
If you don't set this flag, the default value 0 will disable this GPU memory strategy. PaddlePaddle will use FLAGS_fraction_of_gpu_memory_to_use to allocate the initial GPU chunk.



Expand Down Expand Up @@ -246,7 +246,7 @@ FLAGS_reallocate_gpu_memory_in_mb=1024 will re-allocate 1 GB if run out of GPU m
Note
-------
If this flag is set, the memory size set by FLAGS_fraction_of_gpu_memory_to_use will be overrided by this flag, PaddlePaddle will re-allocate the gpu memory with size specified by this flag.
If you don't set this flag, the dafault value 0 will disable this GPU memory strategy. PaddlePaddle will use FLAGS_fraction_of_gpu_memory_to_use to re-allocate GPU memory.
If you don't set this flag, the default value 0 will disable this GPU memory strategy. PaddlePaddle will use FLAGS_fraction_of_gpu_memory_to_use to re-allocate GPU memory.


FLAGS_use_pinned_memory
Expand Down
4 changes: 2 additions & 2 deletions docs/practices/nlp/transformer_in_English-to-Spanish.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1424,8 +1424,8 @@
" encoder_outputs = self.encoder(encoder_emb)\n",
"\n",
" # 解码器\n",
" deocder_emb = self.ps2(decoder_inputs)\n",
" decoder_outputs = self.decoder(deocder_emb, encoder_outputs)\n",
" decoder_emb = self.ps2(decoder_inputs)\n",
" decoder_outputs = self.decoder(decoder_emb, encoder_outputs)\n",
"\n",
" # dropout\n",
" out = self.drop(decoder_outputs)\n",
Expand Down