DataToKnowledge / torch-lstm

2 stars 0 forks source link

Error when processing with CUDA #12

Open fabiofumarola opened 9 years ago

fabiofumarola commented 9 years ago
luajit: ...bio/torch/install/share/lua/5.1/nn/ClassNLLCriterion.lua:50: bad argument #1 to 'ClassNLLCriterion_updateOutput' (torch.CudaTensor expected, got nn.ClassNLLCriterion)
stack traceback:
        [C]: in function 'ClassNLLCriterion_updateOutput'
        ...bio/torch/install/share/lua/5.1/nn/ClassNLLCriterion.lua:50: in function 'forward'
        train.lua:248: in function 'opfunc'
        /home/fabio/torch/install/share/lua/5.1/optim/rmsprop.lua:32: in function 'rmsprop'
        train.lua:288: in main chunk
        [C]: in function 'dofile'
        ...abio/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk
        [C]: at 0x00406670
Gigitsu commented 9 years ago

Can you try this? https://github.com/karpathy/char-rnn/issues/76