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

Exposing solver callbacks to python #3020

Merged
merged 1 commit into from
Jun 17, 2016

Conversation

philkr
Copy link
Contributor

@philkr philkr commented Sep 3, 2015

This PR exposes the solver callbacks to python. They can be added by calling solver.add_callback(on_start, on_gradient), where on_start and on_gradient are python functions.

@philkr philkr force-pushed the python_solver_callback branch 2 times, most recently from a27adf4 to a683f9e Compare September 18, 2015 21:17
@philkr philkr force-pushed the python_solver_callback branch 2 times, most recently from ed660f8 to 53f37c0 Compare October 30, 2015 20:16
@philkr philkr force-pushed the python_solver_callback branch 2 times, most recently from 00eb614 to 35e91e5 Compare April 29, 2016 20:36
@philkr philkr force-pushed the python_solver_callback branch 2 times, most recently from 4a304ba to b97e74c Compare May 27, 2016 20:20
@jeffdaily
Copy link

+1

This is a great addition. Code is elegant. Please accept this pull request.

@seanbell
Copy link

@longjon @shelhamer thoughts?

@jeffdonahue
Copy link
Contributor

Solver_addCallback should maybe be spelled Solver_add_callback for consistency with e.g. BlobVec_add_blob. Otherwise LGTM.

@jeffdonahue
Copy link
Contributor

All LGTM now. Thanks @philkr!

@jeffdonahue jeffdonahue merged commit f28f5ae into BVLC:master Jun 17, 2016
@kli-casia
Copy link
Contributor

Any examples how to use this?

fxbit pushed a commit to Yodigram/caffe that referenced this pull request Sep 1, 2016
@shaibagon
Copy link
Member

shaibagon commented Jan 16, 2017

@kli-nlpr A simple and nice example can be found at this SO thread.

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

Successfully merging this pull request may close these issues.

6 participants