word-rnn
word-rnn copied to clipboard
why CudaTensor?
Hi, I am very excited to try word-rnn and I have installed torch and all that on OS X 10.11
Running the test program th train.lua -gpuid -1 I get an error connected to Cuda, which is
./util/SharedDropout.lua:3: attempt to call field 'CudaTensor' (a nil value)
Is this how it is supposed to be? any ideas for this error?
Thanks, Roberto
PS Please note I have a (old) GPU, some CUDA installed in my system (6.0), but wanted torch to work on CPU only, so I have "cheated" in the installation of torch and avoided it to find nvcc, so I am a bit surprised the code uses "CudaTensor" ...
If you modify torch.CudaTensor() to torch.Tensor() in /util/SharedDropout.lua it works fine on the cpu. Probably should be changed to behave correctly though (opencl mode using cltensor, cpu mode using tensor)
Well, it worked! thanks for the tip!