@@ -160,14 +160,14 @@ def print_stats(self):
160160 # Print initial, average, final, and max memory usage
161161 logging .info ("System stats:" )
162162 if cpu_res is not None :
163- logging .info (f"\t Initial CPU memory usage: { self .initial_cpu_res :.2f} MB" , flush = True )
164- logging .info (f"\t Average CPU memory usage: { self .avg_cpu_res :.2f} MB" , flush = True )
165- logging .info (f"\t Final CPU memory usage: { cpu_res :.2f} MB" , flush = True )
166- logging .info (f"\t Max CPU memory usage: { self .max_cpu_res :.2f} MB" , flush = True )
163+ logging .info (f"\t Initial CPU memory usage: { self .initial_cpu_res :.2f} MB" )
164+ logging .info (f"\t Average CPU memory usage: { self .avg_cpu_res :.2f} MB" )
165+ logging .info (f"\t Final CPU memory usage: { cpu_res :.2f} MB" )
166+ logging .info (f"\t Max CPU memory usage: { self .max_cpu_res :.2f} MB" )
167167
168168 if gpu_res is not None :
169169 for gpu_id , g_res in enumerate (gpu_res ):
170- logging .info (f"\t Initial GPU { gpu_id } memory usage: { self .initial_gpu_res [gpu_id ]:.2f} MB" , flush = True )
171- logging .info (f"\t Average GPU { gpu_id } memory usage: { self .avg_gpu_res [gpu_id ]:.2f} MB" , flush = True )
172- logging .info (f"\t Final GPU { gpu_id } memory usage: { g_res :.2f} MB" , flush = True )
173- logging .info (f"\t Max GPU { gpu_id } memory usage: { self .max_gpu_res [gpu_id ]:.2f} MB" , flush = True )
170+ logging .info (f"\t Initial GPU { gpu_id } memory usage: { self .initial_gpu_res [gpu_id ]:.2f} MB" )
171+ logging .info (f"\t Average GPU { gpu_id } memory usage: { self .avg_gpu_res [gpu_id ]:.2f} MB" )
172+ logging .info (f"\t Final GPU { gpu_id } memory usage: { g_res :.2f} MB" )
173+ logging .info (f"\t Max GPU { gpu_id } memory usage: { self .max_gpu_res [gpu_id ]:.2f} MB" )
0 commit comments