torch / tutorials

A series of machine learning tutorials for Torch7

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2_unsupervised and CUDA

markpeot opened this issue · comments

if I run
torch -i doall.lua -type cuda

I get this error:
torch-qlua: /usr/local/share/torch/lua/nn/SpatialConvolutionMM.lua:42: attempt to call field 'SpatialConvolutionMM_updateOutput' (a nil value)
stack traceback:
[C]: in function 'SpatialConvolutionMM_updateOutput'
/usr/local/share/torch/lua/nn/SpatialConvolutionMM.lua:42: in function 'updateOutput'
/usr/local/share/torch/lua/nn/Sequential.lua:27: in function 'forward'
4_train.lua:157: in function 'opfunc'
/usr/local/share/torch/lua/optim/sgd.lua:36: in function 'optimMethod'
4_train.lua:181: in function 'train'
doall.lua:76: in main chunk

The code works fine if I use the default arguments.
Should I be using a different version of the tutorial?

The tutorials are not really compatible with the GPU code anymore. I'll have to update this code.

@clementfarabet I've got the same error with supervised tutorial.

Can you guys try to re-install cutorch and cunn?

@clementfarabet I did luarocks remove cutorch and luarocks remove cunn and installed it again, got the same error. Tried on 2 machines, mac and ubuntu.

fixed 2_supervised to be CUDA compatible, and just tested it.