[theano-users] Re: Error when try to do w^T*x+b

2017-07-10 Thread zxzhijia
Ok, it works now. Thanks! On Sunday, July 9, 2017 at 2:32:30 PM UTC-8, Alexander Botev wrote: > > If you look at the error the shapes don't match. the conv_out is > 1x32x16x16 while the bias is 1x1x1x32. > I guess your bias you did wrong the dimshuffle. > > On Saturday, 8 July 2017 01:53:58

[theano-users] Re: Error when try to do w^T*x+b

2017-07-10 Thread zxzhijia
In other words, how to add bias in Dan's code: https://github.com/dannyneil/sensor_fusion_iscas_2016/blob/master/theano_layers.py On Sunday, July 9, 2017 at 2:32:30 PM UTC-8, Alexander Botev wrote: > > If you look at the error the shapes don't match. the conv_out is > 1x32x16x16 while the bias

[theano-users] Re: Error when try to do w^T*x+b

2017-07-10 Thread zxzhijia
So what I did is: def __init__(, b=None) self.b=b def get_output(self): . . .

[theano-users] Re: Error when try to do w^T*x+b

2017-07-09 Thread Alexander Botev
If you look at the error the shapes don't match. the conv_out is 1x32x16x16 while the bias is 1x1x1x32. I guess your bias you did wrong the dimshuffle. On Saturday, 8 July 2017 01:53:58 UTC+1, zxzh...@gmail.com wrote: > > conv_out is the output of dnn.dnn_conv. I tried to add the bias to the >