Skip to content
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

log_value sets step to nothing on default #71

Open
wattik opened this issue Jun 29, 2020 · 1 comment
Open

log_value sets step to nothing on default #71

wattik opened this issue Jun 29, 2020 · 1 comment

Comments

@wattik
Copy link

wattik commented Jun 29, 2020

https://github.com/PhilipVinc/TensorBoardLogger.jl/blob/08f57d854ca1b32cc4cfb0a24881d57ec9f5bb1c/src/Loggers/LogValue.jl#L8

Hello, in contrary to the description and probably the expected behavior, the method log_value sets the argument step to nothing on default. As suggested in the description, a more natural default value for the argument would be step(logger). I believe this was intended but somehow accidentally omitted during development.

Cheers,

@PhilipVinc
Copy link
Member

Hi wattik,

While step is set to nothing instead of the current step, the behaviour is what is documented, as later on in the serialisation chains nothing gets converted to step(logger).
See https://github.com/PhilipVinc/TensorBoardLogger.jl/blob/08f57d854ca1b32cc4cfb0a24881d57ec9f5bb1c/src/event.jl#L10

Indeed our implementation is weird, the code should be cleaned up and the conversion should be moved up to improve the code quality.
I have very little time those days, but if you want to pick this up, I'll be fast in reviewing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants