Skip to content

Commit 6bbdd5e

Browse files
ooooo-createLittleHeroZZZX
authored andcommitted
[CodeStyle][Typos] Bump typos to v3.19.0 (PaddlePaddle#76423)
1 parent 5992e0a commit 6bbdd5e

File tree

7 files changed

+17
-10
lines changed

7 files changed

+17
-10
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ repos:
5454
paddle/cinn/utils/registry.h
5555
)$
5656
- repo: https://github.com/PFCCLab/typos-pre-commit-mirror.git
57-
rev: v1.36.2
57+
rev: v1.39.2
5858
hooks:
5959
- id: typos
6060
args: [--force-exclude]

_typos.toml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ extend-exclude = [
44
"third_party",
55
"patches",
66
"build",
7-
# Skip `intermidiate` check in these files
8-
"test/cpp/eager/task_tests/CMakeLists.txt",
9-
"test/cpp/eager/task_tests/hook_test_intermidiate.cc",
107
# Skip `creater` check in these files
118
"paddle/fluid/inference/tensorrt/convert/CMakeLists.txt",
129
"paddle/fluid/inference/tensorrt/convert/generic_and_custom_plugin_creater.cc",
@@ -52,3 +49,13 @@ UNEXPECT = 'UNEXPECT'
5249
tood = 'tood'
5350
unpacket = "unpacket"
5451
vaccum = 'vaccum'
52+
53+
# need to fix
54+
Detecter = 'Detecter'
55+
dismatch = 'dismatch'
56+
distributer = 'distributer'
57+
duoble = 'duoble'
58+
Grap = 'Grap'
59+
Simplied = 'Simplied'
60+
precess = 'precess'
61+
sittin = 'sittin'

paddle/fluid/distributed/collective/deep_ep_xpu/deep_ep.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Buffer::Buffer(int rank,
140140

141141
// Create 32 MiB workspace
142142
// Note(ZKK): here we allocate more(2 * M2N_NUM_WORKSPACE) to support M2N!
143-
// Later we will opitimize here!
143+
// Later we will optimize here!
144144
CUDA_CHECK(
145145
cudaMalloc(&workspace, 2 * M2N_NUM_WORKSPACE * NUM_WORKSPACE_BYTES));
146146
CUDA_CHECK(cudaMemsetAsync(

paddle/phi/kernels/funcs/select_impl.cu.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ void SelectKernel(const KPDevice &dev_ctx,
449449
IntArray dims_array(dims_vec);
450450
DenseTensor count_mem = phi::Empty<CT, KPDevice>(dev_ctx, dims_array);
451451
CT *count_data = count_mem.data<CT>();
452-
// 1.3 launch CountKernl
452+
// 1.3 launch CountKernel
453453
switch (kVecSize) {
454454
CALL_GET_BLOCK_COUNT_KERNEL(4)
455455
CALL_GET_BLOCK_COUNT_KERNEL(2)
@@ -562,7 +562,7 @@ void RestrictSelectKernel(const KPDevice &dev_ctx,
562562
IntArray dims_array(dims_vec);
563563
DenseTensor count_mem = phi::Empty<CT, KPDevice>(dev_ctx, dims_array);
564564
CT *count_data = count_mem.data<CT>();
565-
// 1.3 launch CountKernl
565+
// 1.3 launch CountKernel
566566
GetBlockCountKernel<MT, CT, kVecSize>
567567
<<<grid, block, 0, stream>>>(cond_data, count_data, numel, main_offset);
568568
// 2.1 alloc cumsum data for CoutBlock prefix

python/paddle/nn/clip.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -917,12 +917,12 @@ def _pir_clip(self, params_grads):
917917
no_fusion_sum_square_fp16 = []
918918
no_fusion_sum_square_fp32 = []
919919

920-
# fusion grad need to commnuicate in dp&mp
920+
# fusion grad need to communicate in dp&mp
921921
sum_square_dist = []
922922
sum_square_dist_fp16 = []
923923
sum_square_dist_fp32 = []
924924

925-
# fusion grad only need to commnuicate in dp
925+
# fusion grad only need to communicate in dp
926926
sum_square_not_dist = []
927927
sum_square_not_dist_fp16 = []
928928
sum_square_not_dist_fp32 = []

test/dygraph_to_static/yolov3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def forward(self, inputs):
206206
out_shape = in_shape * self.scale
207207
out_shape.stop_gradient = True
208208

209-
# reisze by actual_shape
209+
# resize by actual_shape
210210
out = paddle.nn.functional.interpolate(
211211
x=inputs, size=out_shape, mode='nearest'
212212
)

0 commit comments

Comments
 (0)