Skip to content

Commit 2bcf666

Browse files
author
RicardoRei
committed
Fix attribute error and multigpu inference (#177, #178)
1 parent d5b31c8 commit 2bcf666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comet/models/predict_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def flatten(list):
8686

8787
def flatten_predictions(predictions):
8888
flatten_pred = Prediction(
89-
scores=torch.cat([pred.scores for pred in predictions], dim=0)
89+
scores=torch.cat([pred["scores"] for pred in predictions], dim=0)
9090
)
9191
if "metadata" in predictions[0]:
9292
flatten_pred["metadata"] = flatten_metadata(

0 commit comments

Comments
 (0)