caffe icon indicating copy to clipboard operation
caffe copied to clipboard

how to change dimension of blob on proto

Open seokhoonboo opened this issue 10 years ago • 1 comments

In the prototxt, I want to chage dimension to connect "InnerProduct -> Convolusion". So i use ReshapeLayer, but I don know how to use it correctly.

i coded like below

n.data, n.label = L.Data(batch_size=batch_size, backend=P.Data.LMDB, source=lmdb, transform_param=dict(scale=1./255), ntop=2)

n.ip1 =   L.InnerProduct(n.data, num_output=784, weight_filler=dict(type='xavier'))
n.resh1 = L.Reshape(n.ip1,reshape_param=dict(shape=dict(dim=2)))
n.conv1 = L.Convolution(n.resh1, kernel_size=5, num_output=20, weight_filler=dict(type='xavier'))

seokhoonboo avatar Jun 14 '16 13:06 seokhoonboo

Please ask usage questions on the mailing list.

From https://github.com/BVLC/caffe/blob/master/CONTRIBUTING.md:

Please do not post usage, installation, or modeling questions, or other requests for help to Issues. Use the caffe-users list instead. This helps developers maintain a clear, uncluttered, and efficient view of the state of Caffe.

seanbell avatar Jun 14 '16 14:06 seanbell