Skip to content

Conversation

longjon
Copy link
Contributor

@longjon longjon commented Oct 1, 2014

These commits expose SGDSolver.test_nets and SGDSolver.iter for more elaborate use of the solver from Python.

This should allow, e.g., MemoryDataLayer to be used with a test net, as discussed at #912. It also lets one write Python scripts that do testing during solving that goes beyond an average over something computed batchwise.

There are more improvements coming (eventually), but this should be mergeable as-is.

@shelhamer
Copy link
Member

Does this yield the test nets as decorated caffe.Net or as bare Net like we talked about offline?

@longjon
Copy link
Contributor Author

longjon commented Oct 2, 2014

Always full, beautiful caffe.Nets. The bare PyNets were a bug that only occurs when invoking #1020 from pycaffe, and I have a private fix, so that should never happen in pushed code.

shelhamer added a commit that referenced this pull request Oct 2, 2014
@shelhamer shelhamer merged commit 77199dd into BVLC:dev Oct 2, 2014
@shelhamer
Copy link
Member

Always an orderly, lovely merge -- thanks Jon!

mitmul pushed a commit to mitmul/caffe that referenced this pull request Oct 11, 2014
RazvanRanca pushed a commit to RazvanRanca/caffe that referenced this pull request Nov 4, 2014
@longjon longjon deleted the python-solver-improvements branch December 30, 2014 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants