Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
be2d9f2e
Unverified
Commit
be2d9f2e
authored
Jun 26, 2023
by
Meghan Cowan
Committed by
GitHub
Jun 26, 2023
Browse files
Fix tpu_metrics_debug (#24452)
fix for tpu metrics debugs string
parent
3b84d86b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/transformers/training_args.py
src/transformers/training_args.py
+4
-1
No files found.
src/transformers/training_args.py
View file @
be2d9f2e
...
@@ -1561,7 +1561,10 @@ class TrainingArguments:
...
@@ -1561,7 +1561,10 @@ class TrainingArguments:
" `--debug tpu_metrics_debug` instead"
,
" `--debug tpu_metrics_debug` instead"
,
FutureWarning
,
FutureWarning
,
)
)
self
.
debug
+=
" tpu_metrics_debug"
if
self
.
debug
is
None
:
self
.
debug
=
" tpu_metrics_debug"
else
:
self
.
debug
+=
" tpu_metrics_debug"
self
.
tpu_metrics_debug
=
False
self
.
tpu_metrics_debug
=
False
if
isinstance
(
self
.
debug
,
str
):
if
isinstance
(
self
.
debug
,
str
):
...
...
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