Skip to content

Commit

Permalink
[Fix] gpu collection during evaluation (#1208)
Browse files Browse the repository at this point in the history
  • Loading branch information
edkair committed Jun 24, 2023
1 parent 04b0ffe commit 42dd97d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmengine/evaluator/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def evaluate(self, size: int) -> dict:
self.collect_device,
tmpdir=self.collect_dir)
else:
collect_results(self.results, size, self.collect_device)
results = collect_results(self.results, size, self.collect_device)

if is_main_process():
# cast all tensors in results list to cpu
Expand Down

0 comments on commit 42dd97d

Please sign in to comment.