Skip to content

Commit bf9df60

Browse files
committed
code style
1 parent 327f3f5 commit bf9df60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

paddle/phi/core/memory/stats.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ void HostMemoryStatResetPeakValue(const std::string& stat_type, int dev_id) {
121121
}
122122

123123
void LogDeviceMemoryStats(const phi::Place& place, const std::string& op_name) {
124-
if (FLAGS_log_memory_stats && (phi::is_gpu_place(place) || phi::is_xpu_place(place))) {
124+
if (FLAGS_log_memory_stats &&
125+
(phi::is_gpu_place(place) || phi::is_xpu_place(place))) {
125126
VLOG(0) << "After launching op_name: " << op_name << ", "
126127
<< "memory_allocated: "
127128
<< static_cast<double>(memory::DeviceMemoryStatCurrentValue(

0 commit comments

Comments
 (0)