[theano-users] CUDNN_STATUS_INTERNAL_ERROR

2017-08-31 Thread zxzhijia
I installed theano 0.9.0-dev and lasagne 0.2.0 dev. When I run my code using CPU, it works. When I my code using GPU, it shows me error as below: sing cuDNN version 5110 on context None Preallocating 10295/11439 Mb (0.90) on cuda0 Mapped name None to device cuda0: Tesla K80 (:04:00.0) Usi

[theano-users] Cannot run my previous code showing /usr/bin/ld: cannot find -lcudnn

2017-08-29 Thread zxzhijia
The old server crash and trying to run my code on the new server. I installed theano 0.9.0-dev and lasagne 0.2.0 dev. When I ran my previous code, it shows me error as below: 69 70 { 71 // Op class DnnVersion 72 73 #if defined(CUDNN_VERSION) 74 V1 = PyTuple_Pack(2, PyInt_FromLong(CUDNN

[theano-users] Re: How to implement binary activation in theano?

2017-07-12 Thread zxzhijia
I see. I'll try that. Thanks. On Wednesday, July 12, 2017 at 11:57:57 AM UTC-8, Jesse Livezey wrote: > > Do you need to take derivatives through the activation? If not, then you > could use switch, i.e. > > x = some theano variable > threshold = .5 > x_binary = T.switch(x > theshold, 1., 0.) > >

[theano-users] How to implement binary activation in theano?

2017-07-12 Thread zxzhijia
In the binarized network github code (), Matthieu used stochastic binarization. I'm wondering how to define just a simple binary activation instead of stochastic in theano? -- --- You received this message because you are subscribed to the Google Groups "theano-users" group. To unsubscribe f

[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 UTC+

[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 is

[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] Error when try to do w^T*x+b

2017-07-07 Thread zxzhijia
conv_out is the output of dnn.dnn_conv. I tried to add the bias to the w^T*x. But it reports me an error: Running network... Traceback (most recent call last): File "", line 1, in runfile('/space/xzhang/git_cnn_conversion/MyLasagneCode_CIFAR10/test_convnet_binary_bias.py', wdir='/spa