Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
51adb97c
Commit
51adb97c
authored
Dec 15, 2020
by
Sylvain Gugger
Browse files
Fix fp16_backend field
parent
1551e2dc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/training_args.py
src/transformers/training_args.py
+1
-1
No files found.
src/transformers/training_args.py
View file @
51adb97c
...
@@ -384,7 +384,7 @@ class TrainingArguments:
...
@@ -384,7 +384,7 @@ class TrainingArguments:
)
)
fp16_backend
:
str
=
field
(
fp16_backend
:
str
=
field
(
default
=
"auto"
,
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
):
def
__post_init__
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment