Fix fp16_backend field

This commit is contained in:
Sylvain Gugger
2020-12-15 17:14:37 -05:00
parent 1551e2dc6d
commit 51adb97cd6

View File

@@ -384,7 +384,7 @@ class TrainingArguments:
)
fp16_backend: str = field(
default="auto",
metadata={"help": "The backend to be used for mixed precision. Should be one of 'auto', 'amp' or 'apex'."},
metadata={"help": "The backend to be used for mixed precision.", "choices": ["auto", "amp", "apex"]},
)
def __post_init__(self):