yoonkim / CNN_sentence

CNNs for sentence classification
2.05k stars 826 forks source link

Fix/64 bits processor compatibility #13

Open ahmed-touati opened 8 years ago

ahmed-touati commented 8 years ago

The code raises "NotImplementedError: The image and the kernel must have the same type.inputs(float32), kerns(float64)" when it is run on 64 bits machine. This bug is fixed by casting Words tensor to theano.config.floatX