{"action":"created","issue":{"url":"https://api.github.com/repos/wojzaremba/lstm/issues/1","labels_url":"https://api.github.com/repos/wojzaremba/lstm/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/wojzaremba/lstm/issues/1/comments","events_url":"https://api.github.com/repos/wojzaremba/lstm/issues/1/events","html_url":"https://github.com/wojzaremba/lstm/issues/1","id":58328422,"number":1,"title":"Invalid device function dropout","user":{"login":"ssakhavi","id":6030203,"avatar_url":"https://avatars.githubusercontent.com/u/6030203?v=3","gravatar_id":"","url":"https://api.github.com/users/ssakhavi","html_url":"https://github.com/ssakhavi","followers_url":"https://api.github.com/users/ssakhavi/followers","following_url":"https://api.github.com/users/ssakhavi/following{/other_user}","gists_url":"https://api.github.com/users/ssakhavi/gists{/gist_id}","starred_url":"https://api.github.com/users/ssakhavi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssakhavi/subscriptions","organizations_url":"https://api.github.com/users/ssakhavi/orgs","repos_url":"https://api.github.com/users/ssakhavi/repos","events_url":"https://api.github.com/users/ssakhavi/events{/privacy}","received_events_url":"https://api.github.com/users/ssakhavi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-20T09:38:55Z","updated_at":"2015-02-20T22:18:18Z","closed_at":null,"body":"I get the following error when running ```main.lua```\r\n\r\nstack traceback:\r\n\t[C]: in function 'copy'\r\n\t...iavash/torch-distro/install/share/lua/5.1/nn/Dropout.lua:16: in function 'func'\r\n\t...h/torch-distro/install/share/lua/5.1/nngraph/gmodule.lua:169: in function 'neteval'\r\n\t...h/torch-distro/install/share/lua/5.1/nngraph/gmodule.lua:199: in function 'forward'\r\n\tmain.lua:148: in function 'fp'\r\n\tmain.lua:224: in function 'main'\r\n\tmain.lua:259: in main chunk\r\n\t[C]: in function 'f'\r\n\t[string \"local f = function() return dofile 'main.lua'...\"]:1: in main chunk\r\n\t[C]: in function 'xpcall'\r\n\t...iavash/torch-distro/install/share/lua/5.1/trepl/init.lua:583: in function 'repl'\r\n\t...rch-distro/install/lib/luarocks/rocks/trepl/scm-1/bin/th:185: in main chunk\r\n\t[C]: at 0x00406170\t\r\n                             "},"comment":{"url":"https://api.github.com/repos/wojzaremba/lstm/issues/comments/75329854","html_url":"https://github.com/wojzaremba/lstm/issues/1#issuecomment-75329854","issue_url":"https://api.github.com/repos/wojzaremba/lstm/issues/1","id":75329854,"user":{"login":"alexbw","id":161935,"avatar_url":"https://avatars.githubusercontent.com/u/161935?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbw","html_url":"https://github.com/alexbw","followers_url":"https://api.github.com/users/alexbw/followers","following_url":"https://api.github.com/users/alexbw/following{/other_user}","gists_url":"https://api.github.com/users/alexbw/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbw/subscriptions","organizations_url":"https://api.github.com/users/alexbw/orgs","repos_url":"https://api.github.com/users/alexbw/repos","events_url":"https://api.github.com/users/alexbw/events{/privacy}","received_events_url":"https://api.github.com/users/alexbw/received_events","type":"User","site_admin":false},"created_at":"2015-02-20T22:18:17Z","updated_at":"2015-02-20T22:18:17Z","body":"I'm seeing this as well. I've followed the instructions on a completely fresh machine for installing `fbcunn` exactly here: https://github.com/facebook/fbcunn/blob/master/INSTALL.md.\r\n\r\nI then install nngraph like so:\r\n\r\n```\r\nluarocks install nngraph\r\n```\r\n\r\nI'm running the script like so:\r\n\r\n```\r\nth main.lua\r\n```\r\n\r\nThe output is:\r\n\r\n```\r\nLoading ./data/ptb.train.txt, size of data = 929589\r\nLoading ./data/ptb.valid.txt, size of data = 73760\r\nLoading ./data/ptb.test.txt, size of data = 82430\r\nUsing 1-th gpu\r\nNetwork parameters:\r\n{\r\n  layers : 2\r\n  lr : 1\r\n  max_max_epoch : 13\r\n  max_grad_norm : 5\r\n  max_epoch : 4\r\n  init_weight : 0.1\r\n  decay : 2\r\n  vocab_size : 10000\r\n  seq_length : 20\r\n  batch_size : 20\r\n  dropout : 0\r\n  rnn_size : 200\r\n}\r\nCreating a RNN LSTM network.\r\nStarting training.\r\n/root/torch/install/bin/luajit: /root/torch/install/share/lua/5.1/nn/Dropout.lua:16: invalid device function\r\nstack traceback:\r\n\t[C]: in function 'copy'\r\n\t/root/torch/install/share/lua/5.1/nn/Dropout.lua:16: in function 'func'\r\n\t/root/torch/install/share/lua/5.1/nngraph/gmodule.lua:169: in function 'neteval'\r\n\t/root/torch/install/share/lua/5.1/nngraph/gmodule.lua:199: in function 'forward'\r\n\tmain.lua:148: in function 'fp'\r\n\tmain.lua:224: in function 'main'\r\n\tmain.lua:259: in main chunk\r\n\t[C]: in function 'dofile'\r\n\t/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk\r\n\t[C]: at 0x00406170\r\n```\r\n\r\n(pardon the use of root user, I just got the fbcunn install working on root, and need to transfer it to a non-superuser). "}}