Add set_mode() to solver
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?
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?
Got it, if the param not working, perhaps add some comment to .proto and the default mode should be cpu?
This is not an issue. The caffe tool respects the configuration and Caffe::set_mode can be called in code.