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
fe379f85
Unverified
Commit
fe379f85
authored
Sep 20, 2021
by
Chengjiang Li
Committed by
GitHub
Sep 20, 2021
Browse files
[Fix]Make sure the args tb_writer passed to the TensorBoardCallback works (#13636)
parent
d8049331
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/transformers/integrations.py
src/transformers/integrations.py
+2
-1
No files found.
src/transformers/integrations.py
View file @
fe379f85
...
...
@@ -364,6 +364,7 @@ class TensorBoardCallback(TrainerCallback):
if
trial_name
is
not
None
:
log_dir
=
os
.
path
.
join
(
args
.
logging_dir
,
trial_name
)
if
self
.
tb_writer
is
None
:
self
.
_init_summary_writer
(
args
,
log_dir
)
if
self
.
tb_writer
is
not
None
:
...
...
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