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
a4340d3b
"tests/electra/__init__.py" did not exist on "31c23bd5ee26425a67f92fc170789656379252a6"
Unverified
Commit
a4340d3b
authored
Aug 01, 2021
by
Alex Hedges
Committed by
GitHub
Aug 01, 2021
Browse files
Set tb_writer to None in TensorBoardCallback.on_train_end() (#12963)
parent
3d4b3bc3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/transformers/integrations.py
src/transformers/integrations.py
+1
-0
No files found.
src/transformers/integrations.py
View file @
a4340d3b
...
...
@@ -401,6 +401,7 @@ class TensorBoardCallback(TrainerCallback):
def
on_train_end
(
self
,
args
,
state
,
control
,
**
kwargs
):
if
self
.
tb_writer
:
self
.
tb_writer
.
close
()
self
.
tb_writer
=
None
class
WandbCallback
(
TrainerCallback
):
...
...
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