Skip to content

Commit

Permalink
Fix attribute error and multigpu inference (#177, #178)
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoRei committed Jan 8, 2024
1 parent d5b31c8 commit 2bcf666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comet/models/predict_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def flatten(list):

def flatten_predictions(predictions):
flatten_pred = Prediction(
scores=torch.cat([pred.scores for pred in predictions], dim=0)
scores=torch.cat([pred["scores"] for pred in predictions], dim=0)
)
if "metadata" in predictions[0]:
flatten_pred["metadata"] = flatten_metadata(
Expand Down

0 comments on commit 2bcf666

Please sign in to comment.