Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CodeStyle][Typos][A-28,C-[18-21]] Fix typos (annotaion,choses,choos,choosed,choosen) #69664

Merged
merged 2 commits into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
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/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