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][C-[10-15]] Fix typo(CACH(4), catched(2), cuase(2), channles(1), channnel(2), cahr(1))。 #69552

Closed
wants to merge 6 commits into from
Closed
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: 1 addition & 6 deletions _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ Uniqe = 'Uniqe'
valuse = 'valuse'
exsits = 'exsits'
sucessfully = 'sucessfully'
CACH = 'CACH'
endianess = 'endianess'
VAILD = 'VAILD'
ues = 'ues'
Expand Down Expand Up @@ -196,7 +195,6 @@ sotring = 'sotring'
overriden = 'overriden'
Maxinum = 'Maxinum'
caculate = 'caculate'
cahr = 'cahr'
occures = 'occures'
framwork = 'framwork'
localy = 'localy'
Expand Down Expand Up @@ -242,7 +240,6 @@ starup = 'starup'
iy = 'iy'
bindins = 'bindins'
choses = 'choses'
catched = 'catched'
rewrited = 'rewrited'
targt = 'targt'
Theoritical = 'Theoritical'
Expand Down Expand Up @@ -332,7 +329,6 @@ funtion = 'funtion'
optin = 'optin'
defualt = 'defualt'
envirnment = 'envirnment'
cuase = 'cuase'
fot = 'fot'
coloumn = 'coloumn'
inital = 'inital'
Expand Down Expand Up @@ -460,7 +456,6 @@ Leafs = 'Leafs'
effecient = 'effecient'
modifed = 'modifed'
deserailize = 'deserailize'
channnel = 'channnel'
Suger = 'Suger'
Actural = 'Actural'
subsituted = 'subsituted'
Expand Down Expand Up @@ -773,7 +768,6 @@ varn = 'varn'
exmaple = 'exmaple'
happend = 'happend'
sequentail = 'sequentail'
channles = 'channles'
Mutiply = 'Mutiply'
Currenly = 'Currenly'
dimention = 'dimention'
Expand Down Expand Up @@ -822,3 +816,4 @@ compatable = 'compatable'
SMAE = 'SMAE'
commericial = 'commericial'
wieghts = 'wieghts'
follwing = 'follwing'
4 changes: 2 additions & 2 deletions paddle/fluid/framework/data_feed.cc
Original file line number Diff line number Diff line change
Expand Up @@ -419,12 +419,12 @@ int InMemoryDataFeed<T>::Next() {
PADDLE_ENFORCE_EQ(output_channel_ != nullptr,
true,
common::errors::InvalidArgument(
"Output channnel should not be null, please check!"));
"Output channel should not be null, please check!"));
PADDLE_ENFORCE_EQ(
consume_channel_ != nullptr,
true,
common::errors::InvalidArgument(
"Consume channnel should not be null, please check!"));
"Consume channel should not be null, please check!"));
VLOG(3) << "output_channel_ size=" << output_channel_->Size()
<< ", consume_channel_ size=" << consume_channel_->Size()
<< ", thread_id=" << thread_id_;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2534,7 +2534,7 @@ bool PixelShuffleOpInferSymbolicShape(

const bool channel_last = (data_format == "NHWC");

// the number of channles shoule be able to be divided by the upscale_factor
// the number of channels shoule be able to be divided by the upscale_factor
// ^ 2.
// TODO(Lans1ot, Buaa): add constrain for the channel number and
// upscale_factor
Expand Down
4 changes: 2 additions & 2 deletions paddle/fluid/pybind/sot/cpython_internals.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ static void Internal_frame_init_get_vars(_PyInterpreterFrame *frame) {
PyObject *o = PyTuple_GET_ITEM(closure, i);
frame->localsplus[offset + i] = Py_NewRef(o);
}
// COPY_FREE_VARS doesn't have inline CACHEs, either:
// COPY_FREE_VARS doesn't have inline caches, either:
frame->prev_instr = _PyCode_CODE(frame->f_code);
}

Expand Down Expand Up @@ -534,7 +534,7 @@ int Internal_PyFrame_FastToLocalsWithError(_PyInterpreterFrame *frame) {
Py_INCREF(o);
frame->localsplus[offset + i] = o;
}
// COPY_FREE_VARS doesn't have inline CACHEs, either:
// COPY_FREE_VARS doesn't have inline caches, either:
frame->prev_instr = _PyCode_CODE(frame->f_code);
}
for (int i = 0; i < co->co_nlocalsplus; i++) {
Expand Down
2 changes: 1 addition & 1 deletion security/advisory/pdsa-2023-013.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CVE-2023-52304

### Impact

Invalid shapes cuase stack buffer overflow in `paddle.searchsorted`. The PoC is as follows:
Invalid shapes cause stack buffer overflow in `paddle.searchsorted`. The PoC is as follows:

```python
import paddle
Expand Down
2 changes: 1 addition & 1 deletion security/advisory/pdsa-2023-016.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CVE-2023-52307

### Impact

Invalid shapes cuase stack buffer overflow in `paddle.linalg.lu_unpack`. The PoC is as follows:
Invalid shapes cause stack buffer overflow in `paddle.linalg.lu_unpack`. The PoC is as follows:

```python
import paddle
Expand Down
4 changes: 2 additions & 2 deletions test/dygraph_to_static/transformer_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def load(program, model_path, executor=None, var_list=None):
paddle.static.load(program, model_path, executor, var_list)
except UnicodeDecodeError:
warnings.warn(
"An UnicodeDecodeError is catched, which might be caused by loading "
"An UnicodeDecodeError is caught, which might be caused by loading "
"a python2 saved model. Encoding of pickle.load would be set and "
"load again automatically."
)
Expand All @@ -419,7 +419,7 @@ def load_dygraph(model_path, keep_name_table=False):
return para_dict, opti_dict
except UnicodeDecodeError:
warnings.warn(
"An UnicodeDecodeError is catched, which might be caused by loading "
"An UnicodeDecodeError is caught, which might be caused by loading "
"a python2 saved model. Encoding of pickle.load would be set and "
"load again automatically."
)
Expand Down
2 changes: 1 addition & 1 deletion tools/gen_ut_cmakelists.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def _init_dist_ut_ports_from_cmakefile(self, cmake_file_name):
break
name = lines[k - 1].strip()

# matcg right tets name format, the name must start with 'test_' follwed bu at least one cahr of
# matcg right tets name format, the name must start with 'test_' follwed bu at least one char of
# '0-9'. 'a-z'. 'A-Z' or '_'
assert re.compile("^test_[0-9a-zA-Z_]+").search(
name
Expand Down