Open nicklhy opened 7 years ago
In my opinion, you can run it in caffe.Net(prototxt, caffe.TEST) and then save the caffemodel using net.save. Finally, translate it to caffe2
@KeyKy , this works but looks rather ugly. What if I do not have caffe in my system? Why do I have to save such useless random weights in disk (for every network structure I would like to use)? I just want to randomly initialize all parameters on-the-fly. I think it should not be any difficult to create all the blobs as long as we have the network definition file.
try to use FeedBlob before createnet...
I translated some models from caffe, i.e. alexnet. Now, I want to create and initialize the model randomly in caffe2(without using the pre-trained weights). How can I do that? Simply executing the code below will raise an error