.def(bp::init<string>())
.def("_forward", &PyNet::Forward)
.def("_backward", &PyNet::Backward)
+ .def("reshape", &PyNet::Reshape)
.def("set_mode_cpu", &PyNet::set_mode_cpu)
.def("set_mode_gpu", &PyNet::set_mode_gpu)
.def("set_phase_train", &PyNet::set_phase_train)
void Forward(int start, int end) { net_->ForwardFromTo(start, end); }
void Backward(int start, int end) { net_->BackwardFromTo(start, end); }
+ void Reshape() { net_->Reshape(); }
void set_input_arrays(bp::object data_obj, bp::object labels_obj);