Open zeakey opened 8 years ago
@shelhamer @ronghanghu @longjon ~_~help
Solver::ApplyUpdate()
nor Net::Update()
are not exposed beyond C++, meaning Matlab and Python interfaces cannot call them. To make this possible, changes to caffe/matlab/+caffe/private/caffe_.cpp are necessary.
@Noiredd Yeah, I realized this then.
I've converted the private Solver::ApplyUpdate()
to public, and then it can be called via Matlab or Python
interface.
Similar change is being implemented - see #6209 and #6238. Once the master branch has a public ApplyUpdate
, the same thing could be implemented for the Matlab interface.
@zeakey My knowledge with C++ is pretty limited. When you say you made the Solver::ApplyUpdate() method public, did you simply change that in the sgd_solvers.hpp?
@ahndroo Yes. Make it public in the root class.
Hi guys, I'm using Matlab to feed data to my network and get the network output with
net.forward
;then compute loss and gradient manually, and use
net.backward(gradient)
to do backward pass.But I find that this will never update the net-parameters, and add
force_backward:true
to net proto doesn't work.The psudo code of my implementation is:
So how to update the network params ???