-
Notifications
You must be signed in to change notification settings - Fork 27
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
Last call of @info seems not to be flushed #53
Comments
Do you have an example? It's not tested, though. |
The main codes are @showprogress "Distilling" for i in 1:n_lessons
s = score(knowledge)
gs = Tracker.gradient(() -> s, ps)
Tracker.update!(opt, ps, gs)
@info "train" score=Flux.data(s)
end
acc = mean(onecold(ds.student(get_Z(ds, knowledge))) .== onecold(get_probability(knowledge)))
@info "train" finish_msg="Distillation with $acc towards knowledge." log_step_increment=0 The last |
Hmm. I cannot reproduce this on MacOs with tensor board 1.10.0. Could you check that it is not TensorBoard that is not refreshing for some reason? Alternatively, if you checkout the branch |
You could try running the following tbl = TBLogger()
# do your stuff
events = []
TensorBoardLogger.map_events(x->push!(events,x), TensorBoardLogger.logdir(tbl))
display(last(events))
display(last(events).summary.value) what's the output? |
In fact this works! What exactly happens here? |
Eh. I have no idea. It's possible that we do something that tensor board does not like. |
All right. I guess I will close this issue for now in thie case. |
The last call of @info seems not to be flushed. Is this tested or I did something wrong?
The text was updated successfully, but these errors were encountered: