File tree Expand file tree Collapse file tree 4 files changed +4
-1
lines changed Expand file tree Collapse file tree 4 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ def evaluate_classification(
7272 end = time .time ()
7373
7474 memory_allocated = torch .cuda .max_memory_allocated (device = device )
75+ torch .cuda .reset_max_memory_allocated (device = device )
7576
7677 speed_mem_metrics = {
7778 'Tasks Per Second (Total)' : test_loader .batch_size / inference_time .avg ,
Original file line number Diff line number Diff line change @@ -255,6 +255,7 @@ def evaluate_detection_coco(
255255 coco_evaluator .summarize ()
256256
257257 memory_allocated = torch .cuda .max_memory_allocated (device = device )
258+ torch .cuda .reset_max_memory_allocated (device = device )
258259
259260 speed_mem_metrics = {
260261 'Tasks Per Second (Total)' : test_loader .batch_size / inference_time .avg ,
Original file line number Diff line number Diff line change @@ -192,6 +192,7 @@ def evaluate_segmentation(
192192 acc_global , acc , iu = confmat .compute ()
193193
194194 memory_allocated = torch .cuda .max_memory_allocated (device = device )
195+ torch .cuda .reset_max_memory_allocated (device = device )
195196
196197 speed_mem_metrics = {
197198 'Tasks Per Second (Total)' : test_loader .batch_size / inference_time .avg ,
Original file line number Diff line number Diff line change @@ -16,5 +16,5 @@ def __repr__(self):
1616 )
1717
1818
19- version = Version (0 , 0 , 28 )
19+ version = Version (0 , 0 , 29 )
2020__version__ = str (version )
You can’t perform that action at this time.
0 commit comments