Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
fix <not serializable> (#4654)
Browse files Browse the repository at this point in the history
  • Loading branch information
dexterju27 committed Jul 13, 2022
1 parent 03ca319 commit f706af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parlai/core/torch_classifier_agent.py
Expand Up @@ -703,7 +703,7 @@ def eval_step(self, batch):
self._update_confusion_matrix(batch, preds)

if self.opt.get('print_scores', False):
return Output(preds, class_list=[self.class_list], probs=probs.cpu())
return Output(preds, class_list=[self.class_list], probs=probs.tolist())
if self.opt.get('return_cand_scores', False):
sorted_scores, ranks = probs.sort(1, descending=True)
sorted_scores = sorted_scores.cpu()
Expand Down

0 comments on commit f706af2

Please sign in to comment.