dnouri / cuda-convnet

My fork of Alex Krizhevsky's cuda-convnet from 2013 where I added dropout, among other features.
http://code.google.com/p/cuda-convnet/
254 stars 147 forks source link

Weight array Access #16

Closed hugoperlin closed 10 years ago

hugoperlin commented 10 years ago

Hi Daniel, I was looking at the code and trying to figure out how could I get/set the weights/bias for the convolutional layers directly. Do you known if there is a way to do that?

Thanks.

dnouri commented 10 years ago

ShowConvNet reads weights in a couple of places, e.g. in do_write_features: https://github.com/dnouri/cuda-convnet/blob/master/shownet.py#L240

Haven't looked at setting the weights manually, but it's bound to happen somewhere between ConvNet.init_model_state and the layers code.