How to feed the weights of the neurons to the blobs in caffe and vice versa?

63 Views Asked by At

I am a very newbie to caffe.

I have a huge weight vector which contains the weights connecting the neurons of the neural network written in C++. I want to know use this weight vector as to define a neural network in Caffe and these weights will be the initial weights of the connecting neurons. How do I feed these weights into the Caffe blobs which is the fundamental way to hold parameter values like weights and biases in caffe.

After every iteration when the weights get updated, I also want to get their values from the blobs and put them back into this huge weight vector which I will access from the remaining part of code in C++.

Please tell me how to code this in caffe. It is actually a process of serialization and deserialization of the weights vector to and from blobs.

Any help will be greatly appreciated

0

There are 0 best solutions below