两个张量都要同步到cpu上来

pull/672/head
rrjia 2022-07-19 17:09:16 +08:00 committed by GitHub
parent 4508251d74
commit 5d3a505d03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class RetriEvaluator(DatasetEvaluator):
def process(self, inputs, outputs):
self.features.append(outputs.cpu())
self.labels.extend(inputs["targets"])
self.labels.extend(inputs["targets"].cpu())
def evaluate(self):
if comm.get_world_size() > 1: