Skip to content

Commit 780902b

Browse files
authored
[CodeStyle][Typos][R-15] Fix typo (REGIST, Regiter, Regist, Registe, regist, registe) (#70999)
1 parent f97ea1d commit 780902b

File tree

19 files changed

+53
-58
lines changed

19 files changed

+53
-58
lines changed

_typos.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,6 @@ ouput = 'ouput'
5959
outpout = 'outpout'
6060
ouptut = 'ouptut'
6161
Ouput = 'Ouput'
62-
regist = 'regist'
63-
Regist = 'Regist'
64-
Registe = 'Registe'
65-
registe = 'registe'
66-
REGIST = 'REGIST'
67-
Regiter = 'Regiter'
6862
setted = 'setted'
6963
sqaure = 'sqaure'
7064
sequeze = 'sequeze'

paddle/cinn/auto_schedule/auto_tuner.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ void AutoTuner::Initialize(const Config& config,
6969
auto&& task = tasks_[i];
7070
task.Initialize(shape_dict, dtype_dict, op_lowerer_.get());
7171
// Register the initial ModuleExpr corresponding to the task
72-
task_registry->Regist(task.serialized_key,
73-
ir::ModuleExpr(task.GetLoweredFuncBodyExprs()));
72+
task_registry->Register(task.serialized_key,
73+
ir::ModuleExpr(task.GetLoweredFuncBodyExprs()));
7474
VLOG(3) << "Add a task, id:" << i << ", serialized_key:\n"
7575
<< task.serialized_key;
7676
}

paddle/fluid/distributed/ps/service/brpc_ps_client.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ int32_t BrpcPsClient::StartClientService() {
123123
return -1;
124124
}
125125
_server_started = true;
126-
_env->RegistePsClient(
126+
_env->RegisterPsClient(
127127
butil::my_ip_cstr(), _server.listen_address().port, _client_id);
128128
VLOG(0) << "BrpcPsClient Service addr: " << butil::my_ip_cstr() << ", "
129129
<< _server.listen_address().port << ", " << _client_id;

paddle/fluid/distributed/ps/service/brpc_ps_server.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ uint64_t BrpcPsServer::Start(const std::string &ip, uint32_t port) {
9292
}
9393
}
9494

95-
_environment->RegistePsServer(ip, port, _rank);
95+
_environment->RegisterPsServer(ip, port, _rank);
9696
cv_.wait(lock, [&] { return stopped_; });
9797

9898
PSHost host;

paddle/fluid/distributed/ps/service/coordinator_client.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ int32_t CoordinatorClient::StartClientService() {
162162
}
163163
uint32_t port_ = std::stol(port);
164164
int32_t rank_ = std::stoi(rank);
165-
_env->RegisteCoordinatorClient(ip, port_, rank_);
165+
_env->RegisterCoordinatorClient(ip, port_, rank_);
166166
VLOG(0) << "fl-ps > coordinator service addr: " << ip << ", " << port << ", "
167167
<< _coordinator_id;
168168
return 0;

paddle/fluid/distributed/ps/service/env.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -138,26 +138,26 @@ class PSEnvironment {
138138

139139
virtual uint64_t GetLocalHostSign() { return 0; }
140140
virtual std::vector<PSHost> GetPsServers() const { return _ps_server_list; }
141-
virtual int32_t RegistePsServer(const std::string &ip,
142-
uint32_t port,
143-
int32_t rank) {
144-
return RegistePsHost(ip, port, rank, _ps_server_list, _ps_server_sign_set);
141+
virtual int32_t RegisterPsServer(const std::string &ip,
142+
uint32_t port,
143+
int32_t rank) {
144+
return RegisterPsHost(ip, port, rank, _ps_server_list, _ps_server_sign_set);
145145
}
146146

147147
virtual std::vector<PSHost> GetPsClients() const { return _ps_client_list; }
148-
virtual int32_t RegistePsClient(const std::string &ip,
149-
uint32_t port,
150-
int32_t rank) {
151-
return RegistePsHost(ip, port, rank, _ps_client_list, _ps_client_sign_set);
148+
virtual int32_t RegisterPsClient(const std::string &ip,
149+
uint32_t port,
150+
int32_t rank) {
151+
return RegisterPsHost(ip, port, rank, _ps_client_list, _ps_client_sign_set);
152152
}
153153

154154
virtual std::vector<PSHost> GetCoordinators() const {
155155
return _coordinator_list;
156156
}
157-
virtual int32_t RegisteCoordinatorClient(const std::string &ip,
158-
uint32_t port,
159-
int32_t rank) {
160-
return RegistePsHost(
157+
virtual int32_t RegisterCoordinatorClient(const std::string &ip,
158+
uint32_t port,
159+
int32_t rank) {
160+
return RegisterPsHost(
161161
ip, port, rank, _coordinator_list, _coordinator_sign_set);
162162
}
163163

@@ -186,7 +186,7 @@ class PSEnvironment {
186186

187187
protected:
188188
//注册一个host // NOLINT
189-
virtual int32_t RegistePsHost(
189+
virtual int32_t RegisterPsHost(
190190
const std::string &ip,
191191
uint32_t port,
192192
int32_t rank,

paddle/fluid/distributed/ps/service/graph_brpc_server.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ uint64_t GraphBrpcServer::Start(const std::string &ip, uint32_t port) {
8181
LOG(ERROR) << "GraphBrpcServer start failed, ip_port=" << ip_port;
8282
return 0;
8383
}
84-
_environment->RegistePsServer(ip, port, _rank);
84+
_environment->RegisterPsServer(ip, port, _rank);
8585
return 0;
8686
}
8787

paddle/fluid/distributed/ps/service/server.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ class PSServer {
109109
}
110110

111111
typedef std::function<int32_t(int, int, const std::string &)> MsgHandlerFunc;
112-
virtual int RegistePServer2PServerMsgHandler(int msg_type,
113-
MsgHandlerFunc handler) {
112+
virtual int RegisterPServer2PServerMsgHandler(int msg_type,
113+
MsgHandlerFunc handler) {
114114
_msg_handler_map[msg_type] = handler;
115115
return 0;
116116
}

paddle/fluid/framework/fleet/fleet_wrapper.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ int FleetWrapper::RegisterHeterCallback(HeterCallBackFunc handler) {
416416
VLOG(3) << "calling FleetWrapper::RegisterHeterCallback";
417417
VLOG(3) << "pslib_ptr_=" << pslib_ptr_;
418418
VLOG(3) << "_worker_ptr=" << pslib_ptr_->_worker_ptr;
419-
return pslib_ptr_->_worker_ptr->registe_heter_callback(handler);
419+
return pslib_ptr_->_worker_ptr->register_heter_callback(handler);
420420

421421
#else
422422
VLOG(0) << "FleetWrapper::RegisterHeterCallback"
@@ -1879,8 +1879,8 @@ int FleetWrapper::RegisterClientToClientMsgHandler(int msg_type,
18791879
VLOG(3) << "calling FleetWrapper::RegisterClientToClientMsgHandler";
18801880
VLOG(3) << "pslib_ptr_=" << pslib_ptr_;
18811881
VLOG(3) << "_worker_ptr=" << pslib_ptr_->_worker_ptr;
1882-
return pslib_ptr_->_worker_ptr->registe_client2client_msg_handler(msg_type,
1883-
handler);
1882+
return pslib_ptr_->_worker_ptr->register_client2client_msg_handler(msg_type,
1883+
handler);
18841884
#else
18851885
VLOG(0) << "FleetWrapper::RegisterClientToClientMsgHandler"
18861886
<< " does nothing when no pslib";

paddle/fluid/inference/tensorrt/convert/conv2d_op.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ class OpDesc;
2626

2727
namespace paddle::inference::tensorrt {
2828

29-
template <typename RegistFunc, typename SetDilationFunc>
29+
template <typename RegisterFunc, typename SetDilationFunc>
3030
void ConvertConv2d(TensorRTEngine* engine,
3131
const framework::proto::OpDesc& op,
3232
const framework::Scope& scope,
3333
bool test_mode,
34-
RegistFunc fadd_layer,
34+
RegisterFunc fadd_layer,
3535
SetDilationFunc fset_dilation,
3636
const std::string& name) {
3737
VLOG(3) << "convert a " << name << " op to tensorrt layer without bias";

0 commit comments

Comments
 (0)