You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thank you very much for the new version 1.0.0 supporting Tensorboard logging. It's a great help to my work!
On my first tries I have experienced an issue when using the overwrite-parameter of the TensorBoardLoggerSpec set to True. It results in the error shown bellow, when executing for the second time, because the handle on the logging file is still blocked and the file can not be overwritten.
As a work-around I included the following function into TBLogger.jl:
functionclose_files!(lg::TBLogger)
# close open streamsfor k=keys(lg.all_files)
close(lg.all_files[k])
endend
I call this function in logger_specs.py at the end of the write_hparams function to release the handle and it seems to work fine.
Thanks for this solution! Indeed it seems like the logger is not being closed. Do you want to add your workaround in a pull request? I think we can have a new method:
@abstractmethoddefclose(self, logger):
pass
within the AbstractLoggerSpec. Then in TensorBoardLoggerSpec, you would put the Julia code (see the other Julia code in logger_specs.py and expression_specs.py to see examples).
And in PySRRegressor we would just add it right after this line:
What happened?
Hello,
thank you very much for the new version 1.0.0 supporting Tensorboard logging. It's a great help to my work!
On my first tries I have experienced an issue when using the overwrite-parameter of the TensorBoardLoggerSpec set to True. It results in the error shown bellow, when executing for the second time, because the handle on the logging file is still blocked and the file can not be overwritten.
As a work-around I included the following function into TBLogger.jl:
I call this function in logger_specs.py at the end of the write_hparams function to release the handle and it seems to work fine.
Best regards
Version
1.0.0
Operating System
Windows
Package Manager
Conda
Interface
Script (i.e.,
python my_script.py
)Relevant log output
Extra Info
No response
The text was updated successfully, but these errors were encountered: