Skip to content

Commit

Permalink
[CodeStyle][Typos][A-28,C-[18-21]] Fix typos (annotaion,choses,`c…
Browse files Browse the repository at this point in the history
…hoos`,`choosed`,`choosen`) (#69664)
  • Loading branch information
rich04lin authored Nov 24, 2024
1 parent 31efc0a commit ceccbf3
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 11 deletions.
5 changes: 0 additions & 5 deletions _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ acitve = 'acitve'
actualy = 'actualy'
actural = 'actural'
Actural = 'Actural'
annotaion = 'annotaion'
assigend = 'assigend'
assined = 'assined'
assgin = 'assgin'
Expand Down Expand Up @@ -81,10 +80,6 @@ cann = 'cann'
vart = 'vart'
checkings = 'checkings'
childs = 'childs'
choses = 'choses'
choos = 'choos'
choosed = 'choosed'
choosen = 'choosen'
Chunck = 'Chunck'
clen = 'clen'
Clas = 'Clas'
Expand Down
2 changes: 1 addition & 1 deletion paddle/fluid/distributed/fleet_executor/dist_model.cc
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ bool DistModel::PreparePlace() {
place_ = phi::CustomPlace(config_.device_type, config_.device_id);
} else {
PADDLE_THROW(common::errors::InvalidArgument(
"Place must be choosen from GPU or CPU or XPU, but got %s.",
"Place must be chosen from GPU or CPU or XPU, but got %s.",
config_.place));
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion paddle/fluid/distributed/ps/thirdparty/round_robin.h
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ struct WrapKeyEqual : public T {
// or a DataNode with a pointer to std::pair<key,val>. Which DataNode
// representation to use
// depends on how fast the swap() operation is. Heuristically, this is
// automatically choosen
// automatically chosen
// based on sizeof(). there are always 2^n Nodes.
//
// * info: Each Node in the map has a corresponding info byte, so there are 2^n
Expand Down
2 changes: 1 addition & 1 deletion paddle/phi/kernels/gpu/yolo_box_post_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ static void YoloTensorParseCuda(
(grid_size / threads_per_block.y) + 1,
(anchors_num / threads_per_block.z) + 1);

// Estimate how many boxes will be choosed
// Estimate how many boxes will be chosen
int bbox_count = 0;
#ifdef PADDLE_WITH_HIP
hipMemcpy(
Expand Down
2 changes: 1 addition & 1 deletion paddle/phi/kernels/onednn/stack_kernel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class StackOneDNNHandler : public OneDNNHandlerNoCachingT<T, dnnl::concat> {
srcs_md.push_back(input->mem_desc().reshape(extended_input_dims));
}

// concat primitive choses suboptimal format tag because it cannot
// concat primitive chooses suboptimal format tag because it cannot
// distinguish between f.e. abcd and abdc if last dim is equal to 1 so
// enforcing is needed for better performance
dst_fmt = GetPlainOneDNNFormat(extended_input_dims.size()); // NOLINT
Expand Down
2 changes: 1 addition & 1 deletion test/dygraph_to_static/test_convert_operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def forward(self, x):
x = paddle.reshape(x, [-1, x.shape[1]])
bs = x.shape[0] # -1

# for trigger choos_shape_attr_or_api
# for trigger choose_shape_attr_or_api
out = paddle.zeros([bs, 1], dtype='float32')
return out

Expand Down
2 changes: 1 addition & 1 deletion tools/gen_pybind11_stub.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def wrapper(self, arg: Any):


def _patch_pybind11_invalid_annotation():
# patch invalid annotaion as `Value`, e.g. 'capsule' to 'typing_extensions.CapsuleType'
# patch invalid annotation as `Value`, e.g. 'capsule' to 'typing_extensions.CapsuleType'
def wrap_name(func):
@functools.wraps(func)
def wrapper(self, arg: Annotation):
Expand Down

0 comments on commit ceccbf3

Please sign in to comment.