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-[22-24]] Fix typos (Chunck,clen,Clas,clas) #69737

Merged
merged 11 commits into from
Nov 27, 2024
Merged
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
6 changes: 2 additions & 4 deletions _typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ extend-exclude = [
anc = 'anc'
arange = "arange"
astroid = 'astroid'
Clas = 'Clas'
clen = 'clen'
dout = "dout"
eles = 'eles'
grad = "grad"
Expand Down Expand Up @@ -73,10 +75,6 @@ cann = 'cann'
vart = 'vart'
checkings = 'checkings'
childs = 'childs'
Chunck = 'Chunck'
clen = 'clen'
Clas = 'Clas'
clas = 'clas'
compability = 'compability'
compatiblity = 'compatiblity'
Compitable = 'Compitable'
Expand Down
4 changes: 2 additions & 2 deletions paddle/fluid/pir/dialect/operator/ir/api_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ class ApiBuilder {
void SetOpRole(int op_role) { builder_->set_op_role(op_role); }
int GetOpRole() const { return builder_->op_role(); }

void SetChunckId(int chunk_id) { builder_->set_chunk_id(chunk_id); }
int GetChunckId() const { return builder_->chunk_id(); }
void SetChunkId(int chunk_id) { builder_->set_chunk_id(chunk_id); }
int GetChunkId() const { return builder_->chunk_id(); }

private:
ApiBuilder();
Expand Down
4 changes: 2 additions & 2 deletions paddle/fluid/pybind/pir.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2191,8 +2191,8 @@ void BindUtils(pybind11::module *m) {
m->def("reset_insertion_point_to_end",
[]() { ApiBuilder::Instance().ResetInsertionPointToEnd(); });
m->def("set_chunk_id",
[](int chunk_id) { ApiBuilder::Instance().SetChunckId(chunk_id); });
m->def("get_chunk_id", []() { return ApiBuilder::Instance().GetChunckId(); });
[](int chunk_id) { ApiBuilder::Instance().SetChunkId(chunk_id); });
m->def("get_chunk_id", []() { return ApiBuilder::Instance().GetChunkId(); });
m->def("set_op_role",
[](int op_role) { ApiBuilder::Instance().SetOpRole(op_role); });
m->def("get_op_role", []() { return ApiBuilder::Instance().GetOpRole(); });
Expand Down
4 changes: 2 additions & 2 deletions paddle/phi/api/profiler/event_tracing.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ namespace phi {
// It is Recommended to set the level explicitly.
static constexpr uint32_t kDefaultTraceLevel = 4;

// Host event tracing. A trace starts when an object of this clas is created and
// stops when the object is destroyed.
// Host event tracing. A trace starts when an object of this class is created
// and stops when the object is destroyed.
// Chrome Trace Viewer Format: Duration Event/Complete Event
class TEST_API RecordEvent {
public:
Expand Down