Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nn.Optim has been already assigned a factory #5

Open
azowmed opened this issue Feb 24, 2016 · 0 comments
Open

nn.Optim has been already assigned a factory #5

azowmed opened this issue Feb 24, 2016 · 0 comments

Comments

@azowmed
Copy link

azowmed commented Feb 24, 2016

Hello,

When executing luajit main.lua or qlua plot.lua I get the fellowing error :

luajit: /path/torch/install/share/lua/5.1/torch/init.lua:102: nn.Optim has been already assigned a factory
stack traceback:
[C]: in function 'newmetatable'
/path/torch/install/share/lua/5.1/torch/init.lua:102: in function 'class'
.../gtsrb.torch-master/Optim.lua:57: in main chunk
[C]: in function 'dofile'
./trainer.lua:6: in main chunk
[C]: in function 'require'
./gtsrb.lua:5: in main chunk
[C]: in function 'require'
main.lua:3: in main chunk
[C]: at 0x0100163bc0

Since th main.lua works fine, I tried th plot.lua, but I am getting this error :

/path/torch/install/bin/luajit: /path/torch/install/share/lua/5.1/trepl/init.lua:384: /path/torch/install/share/lua/5.1/trepl/init.lua:384: /path/torch/install/share/lua/5.1/cudnn/ffi.lua:1279: 'libcudnn (R4) not found in library path.
Please install CuDNN from https://developer.nvidia.com/cuDNN
Then make sure files named as libcudnn.so.4 or libcudnn.4.dylib are placed in your library load path (for example /usr/local/lib , or manually add a path to LD_LIBRARY_PATH)

stack traceback:
[C]: in function 'error'
/path/torch/install/share/lua/5.1/trepl/init.lua:384: in function 'require'
plot.lua:4: in main chunk
[C]: in function 'dofile'
...garm/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x0104558bc0

And for this issue with th, I downloaded cudNN from https://developer.nvidia.com/cuDNN, I updated LD_LIBRARY_PATH, but still having the same problem.

Can you give me a path to debug one of this issues to execute plot ?

Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant