{"action":"closed","issue":{"url":"https://api.github.com/repos/soumith/cudnn.torch/issues/129","repository_url":"https://api.github.com/repos/soumith/cudnn.torch","labels_url":"https://api.github.com/repos/soumith/cudnn.torch/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/soumith/cudnn.torch/issues/129/comments","events_url":"https://api.github.com/repos/soumith/cudnn.torch/issues/129/events","html_url":"https://github.com/soumith/cudnn.torch/issues/129","id":137769470,"number":129,"title":"THNN a nil value","user":{"login":"Atcold","id":2119355,"avatar_url":"https://avatars.githubusercontent.com/u/2119355?v=3","gravatar_id":"","url":"https://api.github.com/users/Atcold","html_url":"https://github.com/Atcold","followers_url":"https://api.github.com/users/Atcold/followers","following_url":"https://api.github.com/users/Atcold/following{/other_user}","gists_url":"https://api.github.com/users/Atcold/gists{/gist_id}","starred_url":"https://api.github.com/users/Atcold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Atcold/subscriptions","organizations_url":"https://api.github.com/users/Atcold/orgs","repos_url":"https://api.github.com/users/Atcold/repos","events_url":"https://api.github.com/users/Atcold/events{/privacy}","received_events_url":"https://api.github.com/users/Atcold/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-02T04:23:25Z","updated_at":"2016-03-02T04:26:21Z","closed_at":"2016-03-02T04:26:21Z","body":"```lua\r\nth> require 'nn'; require 'cudnn';                                                                    \r\n                                                                      [0.8705s]\r\nth> net = nn.Sequential():add(nn.Linear(10, 5)):add(cudnn.ReLU(true)):add(nn.LogSoftMax())\r\n                                                                      [0.0001s]\r\nth> net:cuda()\r\nnn.Sequential {\r\n  [input -> (1) -> (2) -> (3) -> output]\r\n  (1): nn.Linear(10 -> 5)\r\n  (2): cudnn.ReLU\r\n  (3): nn.LogSoftMax\r\n}\r\n                                                                      [0.0039s]\r\nth> net:forward(torch.randn(10):cuda())                                                               \r\n/home/atcold/torch/install/share/lua/5.1/nn/LogSoftMax.lua:4: attempt to index field 'THNN' (a nil value)\r\nstack traceback:\r\n        /home/atcold/torch/install/share/lua/5.1/nn/LogSoftMax.lua:4: in function 'updateOutput'\r\n        /home/atcold/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'\r\n        [string \"_RESULT={net:forward(torch.randn(10):cuda())}\"]:1: in main chunk\r\n        [C]: in function 'xpcall'\r\n        /home/atcold/torch/install/share/lua/5.1/trepl/init.lua:651: in function 'repl'\r\n        ...cold/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:199: in main chunk\r\n        [C]: at 0x00406670\r\n                                                                      [0.2120s]\r\n```\r\nOh, I guess the classifier has to be `cunn` rather then `cudnn`... I think I got confused."}}