{"action":"opened","issue":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/7878","repository_url":"https://api.github.com/repos/pytorch/pytorch","labels_url":"https://api.github.com/repos/pytorch/pytorch/issues/7878/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/7878/comments","events_url":"https://api.github.com/repos/pytorch/pytorch/issues/7878/events","html_url":"https://github.com/pytorch/pytorch/issues/7878","id":326735482,"number":7878,"title":"module 'torch.backends.cudnn.rnn' has no attribute 'init_rnn_descriptor'","user":{"login":"LaiPiXiong","id":15033269,"avatar_url":"https://avatars2.githubusercontent.com/u/15033269?v=4","gravatar_id":"","url":"https://api.github.com/users/LaiPiXiong","html_url":"https://github.com/LaiPiXiong","followers_url":"https://api.github.com/users/LaiPiXiong/followers","following_url":"https://api.github.com/users/LaiPiXiong/following{/other_user}","gists_url":"https://api.github.com/users/LaiPiXiong/gists{/gist_id}","starred_url":"https://api.github.com/users/LaiPiXiong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaiPiXiong/subscriptions","organizations_url":"https://api.github.com/users/LaiPiXiong/orgs","repos_url":"https://api.github.com/users/LaiPiXiong/repos","events_url":"https://api.github.com/users/LaiPiXiong/events{/privacy}","received_events_url":"https://api.github.com/users/LaiPiXiong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-26T12:42:46Z","updated_at":"2018-05-26T12:42:46Z","closed_at":null,"author_association":"NONE","body":"## My code can works right on the 0.2.0 version. After i update pytorch to 0.4.0, I first change all Variable to tensor, and use \"to(device) and no_grad()\" instead of '.cuda()' 'volatile=True' respectively. \r\nThen, when i run this code, it shows errors as follows:\r\n\r\nTraceback (most recent call last):\r\n  File \"/home/mohong/workspace/July5/train.py\", line 209, in <module>\r\n    train(opt)\r\nTerminating BlobFetcher\r\n  File \"/home/mohong/workspace/July5/train.py\", line 68, in train\r\n    model = model.to(device)\r\n  File \"/usr/local/lib/python3.5/dist-packages/torch/nn/modules/module.py\", line 393, in to\r\n    return self._apply(lambda t: t.to(device))\r\n  File \"/usr/local/lib/python3.5/dist-packages/torch/nn/modules/module.py\", line 176, in _apply\r\n    module._apply(fn)\r\n  File \"/home/mohong/workspace/July5/models/rnn.py\", line 123, in _apply\r\n    self.flatten_parameters()\r\n  File \"/home/mohong/workspace/July5/models/rnn.py\", line 102, in flatten_parameters\r\n    fn.rnn_desc = rnn.init_rnn_descriptor(fn, handle)\r\nAttributeError: module 'torch.backends.cudnn.rnn' has no attribute 'init_rnn_descriptor'\r\n"}}
{"actor":{"display_login":"LaiPiXiong"}}