Unverified Commit f5c097fc authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Fix backward compatibility with EvaluationStrategy (#10718)

parent d9e693e1
......@@ -526,6 +526,8 @@ class TrainingArguments:
"using `EvaluationStrategy` for `evaluation_strategy` is deprecated and will be removed in version 5 of 🤗 Transformers. Use `IntervalStrategy` instead",
FutureWarning,
)
# Go back to the underlying string or we won't be able to instantiate `IntervalStrategy` on it.
self.evaluation_strategy = self.evaluation_strategy.value
self.evaluation_strategy = IntervalStrategy(self.evaluation_strategy)
self.logging_strategy = IntervalStrategy(self.logging_strategy)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment