Skip to content

Commit ceccbf3

Browse files
authored
[CodeStyle][Typos][A-28,C-[18-21]] Fix typos (annotaion,choses,choos,choosed,choosen) (#69664)
1 parent 31efc0a commit ceccbf3

File tree

7 files changed

+6
-11
lines changed

7 files changed

+6
-11
lines changed

_typos.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ acitve = 'acitve'
3535
actualy = 'actualy'
3636
actural = 'actural'
3737
Actural = 'Actural'
38-
annotaion = 'annotaion'
3938
assigend = 'assigend'
4039
assined = 'assined'
4140
assgin = 'assgin'
@@ -81,10 +80,6 @@ cann = 'cann'
8180
vart = 'vart'
8281
checkings = 'checkings'
8382
childs = 'childs'
84-
choses = 'choses'
85-
choos = 'choos'
86-
choosed = 'choosed'
87-
choosen = 'choosen'
8883
Chunck = 'Chunck'
8984
clen = 'clen'
9085
Clas = 'Clas'

paddle/fluid/distributed/fleet_executor/dist_model.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ bool DistModel::PreparePlace() {
225225
place_ = phi::CustomPlace(config_.device_type, config_.device_id);
226226
} else {
227227
PADDLE_THROW(common::errors::InvalidArgument(
228-
"Place must be choosen from GPU or CPU or XPU, but got %s.",
228+
"Place must be chosen from GPU or CPU or XPU, but got %s.",
229229
config_.place));
230230
}
231231
return true;

paddle/fluid/distributed/ps/thirdparty/round_robin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ struct WrapKeyEqual : public T {
944944
// or a DataNode with a pointer to std::pair<key,val>. Which DataNode
945945
// representation to use
946946
// depends on how fast the swap() operation is. Heuristically, this is
947-
// automatically choosen
947+
// automatically chosen
948948
// based on sizeof(). there are always 2^n Nodes.
949949
//
950950
// * info: Each Node in the map has a corresponding info byte, so there are 2^n

paddle/phi/kernels/gpu/yolo_box_post_kernel.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ static void YoloTensorParseCuda(
251251
(grid_size / threads_per_block.y) + 1,
252252
(anchors_num / threads_per_block.z) + 1);
253253

254-
// Estimate how many boxes will be choosed
254+
// Estimate how many boxes will be chosen
255255
int bbox_count = 0;
256256
#ifdef PADDLE_WITH_HIP
257257
hipMemcpy(

paddle/phi/kernels/onednn/stack_kernel.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class StackOneDNNHandler : public OneDNNHandlerNoCachingT<T, dnnl::concat> {
6363
srcs_md.push_back(input->mem_desc().reshape(extended_input_dims));
6464
}
6565

66-
// concat primitive choses suboptimal format tag because it cannot
66+
// concat primitive chooses suboptimal format tag because it cannot
6767
// distinguish between f.e. abcd and abdc if last dim is equal to 1 so
6868
// enforcing is needed for better performance
6969
dst_fmt = GetPlainOneDNNFormat(extended_input_dims.size()); // NOLINT

test/dygraph_to_static/test_convert_operators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def forward(self, x):
7676
x = paddle.reshape(x, [-1, x.shape[1]])
7777
bs = x.shape[0] # -1
7878

79-
# for trigger choos_shape_attr_or_api
79+
# for trigger choose_shape_attr_or_api
8080
out = paddle.zeros([bs, 1], dtype='float32')
8181
return out
8282

tools/gen_pybind11_stub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def wrapper(self, arg: Any):
185185

186186

187187
def _patch_pybind11_invalid_annotation():
188-
# patch invalid annotaion as `Value`, e.g. 'capsule' to 'typing_extensions.CapsuleType'
188+
# patch invalid annotation as `Value`, e.g. 'capsule' to 'typing_extensions.CapsuleType'
189189
def wrap_name(func):
190190
@functools.wraps(func)
191191
def wrapper(self, arg: Annotation):

0 commit comments

Comments
 (0)