soumith / imagenet-multiGPU.torch

an imagenet example in torch.
BSD 2-Clause "Simplified" License
401 stars 158 forks source link

I got an error (attempt to call method 'for_each' (a nil value)). #11

Closed cswhjiang closed 8 years ago

cswhjiang commented 9 years ago

I run with the following command:

th main.lua -data /devData/BenchmarkData/ILSVRC2012_resize  -netType overfeat

But I got the following error messages. Any suggestions? Thanks.

/home/jwh/torch/install/bin/luajit: ...est_torch/imagenet-multiGPU.torch/fbcunn_files/Optim.lua:61: attempt to call method 'for_each' (a nil value)
stack traceback:
    ...est_torch/imagenet-multiGPU.torch/fbcunn_files/Optim.lua:61: in function '__init'
    /home/jwh/torch/install/share/lua/5.1/torch/init.lua:54: in function </home/jwh/torch/install/share/lua/5.1/torch/init.lua:50>
    [C]: in function 'Optim'
    /home/jwh/test_torch/imagenet-multiGPU.torch/train.lua:35: in main chunk
    [C]: in function 'dofile'
    main.lua:35: in main chunk
    [C]: in function 'dofile'
    .../jwh/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk
    [C]: at 0x00406670
szagoruyko commented 9 years ago

Requirements section in readme:

git clone https://github.com/torch/nn && cd nn && git checkout getParamsByDevice && luarocks make rocks/nn-scm-1.rockspec
cswhjiang commented 9 years ago

It works. Thanks. I can run the demo now. But the Volatile GPU-Util of Tesla K40c is almost always 0%. Is it normal?