"tests/electra/__init__.py" did not exist on "31c23bd5ee26425a67f92fc170789656379252a6"
Unverified Commit a4340d3b authored by Alex Hedges's avatar Alex Hedges Committed by GitHub
Browse files

Set tb_writer to None in TensorBoardCallback.on_train_end() (#12963)

parent 3d4b3bc3
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment