Nil value call in train.lua?
anonezumi opened this issue · comments
I've followed the installation instructions and successfully ran the preprocessing script to generate my .h5 and .json files, but I've run into a problem when training. Here's the output when I run train.lua exactly as described:
Running with CUDA on GPU 0
/home/[username removed]/torch/install/bin/luajit: train.lua:187: attempt to call field 'adam' (a nil value)
stack traceback:
train.lua:187: in main chunk
[C]: in function 'dofile'
.../[username removed]/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d80
Any idea why this is happening and how to fix it?
I did some experimenting, and apparently the problem was I was running an older version of optim. Once I updated it, train.lua now works.