From 4851b279e872b99c0df71cd2df1bec158beca70c Mon Sep 17 00:00:00 2001 From: patrickvonplaten Date: Sun, 27 Dec 2020 20:47:10 +0000 Subject: [PATCH] push --- src/transformers/trainer_seq2seq.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/transformers/trainer_seq2seq.py b/src/transformers/trainer_seq2seq.py index 4fc7eb59b64..9ca93535e8c 100644 --- a/src/transformers/trainer_seq2seq.py +++ b/src/transformers/trainer_seq2seq.py @@ -171,7 +171,9 @@ def prediction_step( """ if not self.args.predict_with_generate or prediction_loss_only: - return super()(self, model, inputs, prediction_loss_only=prediction_loss_only, ignore_keys=ignore_keys) + return super().prediction_step( + model, inputs, prediction_loss_only=prediction_loss_only, ignore_keys=ignore_keys + ) has_labels = "labels" in inputs inputs = self._prepare_inputs(inputs)