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
3a107645
Unverified
Commit
3a107645
authored
Oct 26, 2020
by
Lysandre Debut
Committed by
GitHub
Oct 26, 2020
Browse files
Fix TF training arguments instantiation (#8063)
parent
bc9332b5
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 @
3a107645
...
...
@@ -351,7 +351,7 @@ class TrainingArguments:
if
self
.
run_name
is
None
:
self
.
run_name
=
self
.
output_dir
if
self
.
device
.
type
!=
"cuda"
and
self
.
fp16
:
if
is_torch_available
()
and
self
.
device
.
type
!=
"cuda"
and
self
.
fp16
:
raise
ValueError
(
"AMP (`--fp16`) can only be used on CUDA devices."
)
@
property
...
...
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