message: Expose share_weights to python to allow running test nets
diff: @@ -298,6 +298,10 @@ void Solver_add_nccl(Solver<Dtype>* solver
  #endif
  }
  +void share_weights(Solver<Dtype>* solver, Net<Dtype>* net) {
  + net->ShareTrainedLayersWith(solver->net().get());
  +}
  +
  template<typename Dtype>
  class NetCallback: public Net<Dtype>::Callback {
  public:
  @@ -459,6 +463,7 @@ BOOST_PYTHON_MODULE(_caffe) {
  .def("step", &Solver<Dtype>::Step)
  .def("restore", &Solver<Dtype>::Restore)
  .def("snapshot", &Solver<Dtype>::Snapshot)
  + .def("share_weights", &share_weights)
  .add_property("param", bp::make_function(&Solver<Dtype>::param,
  bp::return_value_policy<bp::copy_const_reference>()));
  BP_REGISTER_SHARED_PTR_TO_PYTHON(Solver<Dtype>);
  