-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logger fixes: close streams and persist during warm start #763
Conversation
Added close method to logger_specs.py
Close logger at the end of run.
for more information, see https://pre-commit.ci
I'm confused because according to this: JuliaLogging/TensorBoardLogger.jl#109, this file closing should already happen automatically? So I am not sure why it does not in our case. Also it should call |
Effectively I reimplemented the Base.close method as close_logger to call it from logger_spec.py. If it is possible to call the Base.close method directly from logger_spec.py that would definitely be the better option. |
Concerning JuliaLogging/TensorBoardLogger.jl/109 I am not sure, why it does not close the logger, but if possible it would be great to already solve this issue on the level of the underlying Julia-code I think. |
I think you can do |
Pull Request Test Coverage Report for Build 12206177822Details
💛 - Coveralls |
Thanks @BrotherHa! |
Hallo,
I have added an abstract 'dummy' method to close the logger in instance to AbstractLoggerSpec and a method with the same function for the TensorboardLoggerSpec. The method is called in sr.py after the logging file is completed. This enables the use of the parameter overwrite = True for the TensorBoardLoggerSpec and solves issue (Closes #761) .
Best regards