push (#9320)
This commit is contained in:
committed by
GitHub
parent
61443cd7d9
commit
8e74eca7f2
@@ -171,7 +171,9 @@ class Seq2SeqTrainer(Trainer):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
if not self.args.predict_with_generate or prediction_loss_only:
|
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
|
has_labels = "labels" in inputs
|
||||||
inputs = self._prepare_inputs(inputs)
|
inputs = self._prepare_inputs(inputs)
|
||||||
|
|||||||
Reference in New Issue
Block a user