caffe icon indicating copy to clipboard operation
caffe copied to clipboard

Add set_mode() to solver

Open june-qijun opened this issue 12 years ago • 3 comments

When I call the solver, it always run so slow, and I found that the solver_mode in param file will only be used in the caffe.bin. Should we add some control to the solver?

june-qijun avatar Sep 25 '14 03:09 june-qijun

In fact #1083 removed the mode check in the solver code itself, in accordance with the feeling at #925 -- briefly, that the solver prototxt should be a device independent thing, though solver_mode will continue to exist for now to avoid breaking things.

When not using the caffe binary tool, one should just be able to call Caffe::set_mode before invoking the solver as desired. Do you have a case where that is not working, or not a sensible thing to do?

longjon avatar Sep 25 '14 05:09 longjon

Got it, if the param not working, perhaps add some comment to .proto and the default mode should be cpu?

june-qijun avatar Sep 25 '14 06:09 june-qijun

This is not an issue. The caffe tool respects the configuration and Caffe::set_mode can be called in code.

shelhamer avatar Oct 02 '14 07:10 shelhamer