Update run_pl_glue.py (#4117)

This commit is contained in:
William Falcon 2020-05-02 10:38:30 -04:00 committed by GitHub
parent 5282b31df4
commit 4c5bd92183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,7 @@ class GLUETransformer(BaseTransformer):
ret["log"] = results
return ret, preds_list, out_label_list
def validation_end(self, outputs: list) -> dict:
def validation_epoch_end(self, outputs: list) -> dict:
ret, preds, targets = self._eval_end(outputs)
logs = ret["log"]
return {"val_loss": logs["val_loss"], "log": logs, "progress_bar": logs}