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

Access to inner control of Solve() loop #1564

Closed
beniz opened this issue Dec 12, 2014 · 2 comments
Closed

Access to inner control of Solve() loop #1564

beniz opened this issue Dec 12, 2014 · 2 comments

Comments

@beniz
Copy link

beniz commented Dec 12, 2014

Access to the solver's Solve() function inner loop is of interest to third party software and clients of libcaffe. One obvious basic use-case is the tracking of the current model loss during training.

What would be the best practice for providing access to the inner loop ? I've looked at past issues and PR and it seems there was an effort to bring a custom callback into the loop (see #738), that appears to have eventually aborted.

The inner loop is very simple, which is good, and thus for my current use case, I do simply turn Solver's protected variables into public ones in solver.hpp, and rewrite a tiny loop outside of libcaffe. As ugly as it is, it remains a very minimal change ;)

How to best help you clear this issue if you believe it is relevant to others, as it is relevant to me ?

Thanks!

EDIT: another use-case is the ability to kill a training job, and this is better done from the inner loop.

@jyegerlehner
Copy link
Contributor

You could merge in PR 1228 which might be what you are looking for.

@beniz
Copy link
Author

beniz commented Dec 14, 2014

@jyegerlehner thank you, this should do. I believe I had seen it but was unable to find it again. closing.

@beniz beniz closed this as completed Dec 14, 2014
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