Skip to content

Commit 5a9f17f

Browse files
committed
clean up
1 parent 9927413 commit 5a9f17f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

paddle/fluid/operators/listen_and_serv_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ void ListenAndServOp::RunAsyncLoop(framework::Executor *executor,
296296
void ListenAndServOp::RunImpl(const framework::Scope &scope,
297297
const platform::Place &dev_place) const {
298298
// Mark this as PS that it should decide profiling by listening from trainer.
299-
platform::SetProfileLisener();
299+
platform::SetProfileListener();
300300
platform::DeviceContextPool &pool = platform::DeviceContextPool::Instance();
301301
auto &dev_ctx = *pool.Get(dev_place);
302302
framework::Scope &recv_scope = scope.NewScope();

paddle/fluid/platform/profiler.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ void DisableProfiler(EventSortingKey sorted_key,
459459
bool IsProfileEnabled() { return g_state != ProfilerState::kDisabled; }
460460
bool ShouldSendProfileState() { return should_send_profile_state; }
461461

462-
void SetProfileLisener() {
462+
void SetProfileListener() {
463463
std::mt19937 rng;
464464
rng.seed(std::random_device()());
465465
std::uniform_int_distribution<std::mt19937::result_type> dist6(

paddle/fluid/platform/profiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ bool IsProfileEnabled();
119119
// Whether the trainer should send profiling state to PS.
120120
bool ShouldSendProfileState();
121121
// Mark current process as PS by assigning a lister id.
122-
void SetProfileLisener();
122+
void SetProfileListener();
123123
int64_t ListenerId();
124124

125125
} // namespace platform

0 commit comments

Comments
 (0)