-
Notifications
You must be signed in to change notification settings - Fork 2
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
Remove LearnLogger? #61
Comments
I vote this one! And then either drop [tb] |
One other option could be to have struct LearnLogger{L}
logger::L
logged::Dict{String,Vector{Any}}
end and it could log everything to function log_value!(logger::LearnLogger, field, value)
values = get!(() -> Any[], logger.logged, field)
push!(values, value)
return log_value!(logger.logger, field, value)
end Then a |
Yeah---and I think if someone does want to log to a local dict, they can easily make a logger that does that. |
After #60 we've defined an interface that folks can plug into for custom logging.
We could drop the Tensorboard dep by removing the
LearnLogger
. We could make a no-op logger that doesn't actually log anything, or maybe aDict
logger that logs things to alogged
dict as the current one does, which could be good for testing. Or we could keep the current LearnLogger.The text was updated successfully, but these errors were encountered: