{"action":"created","issue":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/14260","repository_url":"https://api.github.com/repos/pytorch/pytorch","labels_url":"https://api.github.com/repos/pytorch/pytorch/issues/14260/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/14260/comments","events_url":"https://api.github.com/repos/pytorch/pytorch/issues/14260/events","html_url":"https://github.com/pytorch/pytorch/issues/14260","id":382912414,"node_id":"MDU6SXNzdWUzODI5MTI0MTQ=","number":14260,"title":"RNN have CuDNN error: CUDNN_STATUS_SUCCESS with Tesla T4","user":{"login":"fuzihaofzh","id":1419566,"node_id":"MDQ6VXNlcjE0MTk1NjY=","avatar_url":"https://avatars3.githubusercontent.com/u/1419566?v=4","gravatar_id":"","url":"https://api.github.com/users/fuzihaofzh","html_url":"https://github.com/fuzihaofzh","followers_url":"https://api.github.com/users/fuzihaofzh/followers","following_url":"https://api.github.com/users/fuzihaofzh/following{/other_user}","gists_url":"https://api.github.com/users/fuzihaofzh/gists{/gist_id}","starred_url":"https://api.github.com/users/fuzihaofzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fuzihaofzh/subscriptions","organizations_url":"https://api.github.com/users/fuzihaofzh/orgs","repos_url":"https://api.github.com/users/fuzihaofzh/repos","events_url":"https://api.github.com/users/fuzihaofzh/events{/privacy}","received_events_url":"https://api.github.com/users/fuzihaofzh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-21T01:05:23Z","updated_at":"2018-12-13T18:04:47Z","closed_at":null,"author_association":"NONE","body":"## 🐛 Bug\r\n\r\nrnn cannot work on Tesla T4.\r\n\r\n## To Reproduce\r\nSystem: Ubuntu 18.04.1 LTS\r\nCUDA Version: 10.0.130\r\nGPU: Tesla T4\r\n\r\nSteps to reproduce the behavior:\r\n\r\nrun the code:\r\n```\r\nimport torch\r\nimport torch.nn as nn\r\na = torch.randn(5, 3, 10) # This can be sent into GPU correctly!\r\nrnn = nn.RNN(10, 20, 2)\r\nrnn.cuda()\r\n```\r\nThe error is:\r\n```\r\n---------------------------------------------------------------------------\r\nRuntimeError                              Traceback (most recent call last)\r\n<ipython-input-4-951688d61d0c> in <module>\r\n----> 1 rnn.cuda()\r\n\r\n~/ProgramFiles/miniconda3/lib/python3.7/site-packages/torch/nn/modules/module.py in cuda(s\r\nelf, device)\r\n    256             Module: self\r\n    257         \"\"\"\r\n--> 258         return self._apply(lambda t: t.cuda(device))\r\n    259\r\n    260     def cpu(self):\r\n\r\n~/ProgramFiles/miniconda3/lib/python3.7/site-packages/torch/nn/modules/rnn.py in _apply(se\r\nlf, fn)\r\n    110     def _apply(self, fn):\r\n    111         ret = super(RNNBase, self)._apply(fn)\r\n--> 112         self.flatten_parameters()\r\n    113         return ret\r\n    114\r\n~/ProgramFiles/miniconda3/lib/python3.7/site-packages/torch/nn/modules/rnn.py in flatten_p\r\narameters(self)\r\n    103                     weight_arr, weight_stride0,\r\n    104                     self.input_size, rnn.get_cudnn_mode(self.mode), self.hidden_si\r\nze, self.num_layers,\r\n--> 105                     self.batch_first, bool(self.bidirectional))\r\n    106\r\n    107             self._param_buf_size = weight_buf.size(0)\r\n\r\nRuntimeError: CuDNN error: CUDNN_STATUS_SUCCESS\r\n```\r\n\r\n<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->\r\n\r\n## Expected behavior\r\n\r\n<!-- A clear and concise description of what you expected to happen. -->\r\nExpect rnn is sent to GPU\r\n\r\n## Environment\r\n\r\nPlease copy and paste the output from our\r\n[environment collection script](https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py)\r\n(or fill out the checklist below manually).\r\n\r\nYou can get the script and run it with:\r\n```\r\nwget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py\r\n# For security purposes, please check the contents of collect_env.py before running it.\r\npython collect_env.py\r\n```\r\n\r\n - PyTorch Version (e.g., 1.0): 0.4.1.post2\r\n - OS (e.g., Linux): Linux\r\n - How you installed PyTorch (`conda`, `pip`, source): pip\r\n - Build command you used (if compiling from source):\r\n - Python version:  3.7\r\n - CUDA/cuDNN version: 10.0.130\r\n - GPU models and configuration:\r\nGPU 0: Tesla T4\r\n - Any other relevant information:\r\n\r\n## Additional context\r\n\r\n<!-- Add any other context about the problem here. -->\r\n"},"comment":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/comments/447064235","html_url":"https://github.com/pytorch/pytorch/issues/14260#issuecomment-447064235","issue_url":"https://api.github.com/repos/pytorch/pytorch/issues/14260","id":447064235,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzA2NDIzNQ==","user":{"login":"rajatvd","id":13083346,"node_id":"MDQ6VXNlcjEzMDgzMzQ2","avatar_url":"https://avatars2.githubusercontent.com/u/13083346?v=4","gravatar_id":"","url":"https://api.github.com/users/rajatvd","html_url":"https://github.com/rajatvd","followers_url":"https://api.github.com/users/rajatvd/followers","following_url":"https://api.github.com/users/rajatvd/following{/other_user}","gists_url":"https://api.github.com/users/rajatvd/gists{/gist_id}","starred_url":"https://api.github.com/users/rajatvd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajatvd/subscriptions","organizations_url":"https://api.github.com/users/rajatvd/orgs","repos_url":"https://api.github.com/users/rajatvd/repos","events_url":"https://api.github.com/users/rajatvd/events{/privacy}","received_events_url":"https://api.github.com/users/rajatvd/received_events","type":"User","site_admin":false},"created_at":"2018-12-13T18:04:47Z","updated_at":"2018-12-13T18:04:47Z","author_association":"NONE","body":"I experienced the same issue when moving an RNN to an Nvidia RTX 2070 GPU. \r\n\r\n* CUDA 9.0\r\n* cuDNN 7201\r\n* pytorch 0.5.0a0\r\n* Linux\r\n* Python 3.6\r\n\r\n\r\nAlso got this error\r\n\r\n`torch.backends.cudnn.CuDNNError: 4: b'CUDNN_STATUS_INTERNAL_ERROR'` \r\n\r\nwhen using Nvidia GTX 1080 ti."}}
{"actor":{"display_login":"rajatvd"}}