{"action":"created","issue":{"url":"https://api.github.com/repos/spro/practical-pytorch/issues/106","repository_url":"https://api.github.com/repos/spro/practical-pytorch","labels_url":"https://api.github.com/repos/spro/practical-pytorch/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/spro/practical-pytorch/issues/106/comments","events_url":"https://api.github.com/repos/spro/practical-pytorch/issues/106/events","html_url":"https://github.com/spro/practical-pytorch/issues/106","id":328807022,"node_id":"MDU6SXNzdWUzMjg4MDcwMjI=","number":106,"title":"RuntimeError: dimension specified as 0 but tensor has no dimensions","user":{"login":"EinAeffchen","id":12881654,"node_id":"MDQ6VXNlcjEyODgxNjU0","avatar_url":"https://avatars1.githubusercontent.com/u/12881654?v=4","gravatar_id":"","url":"https://api.github.com/users/EinAeffchen","html_url":"https://github.com/EinAeffchen","followers_url":"https://api.github.com/users/EinAeffchen/followers","following_url":"https://api.github.com/users/EinAeffchen/following{/other_user}","gists_url":"https://api.github.com/users/EinAeffchen/gists{/gist_id}","starred_url":"https://api.github.com/users/EinAeffchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EinAeffchen/subscriptions","organizations_url":"https://api.github.com/users/EinAeffchen/orgs","repos_url":"https://api.github.com/users/EinAeffchen/repos","events_url":"https://api.github.com/users/EinAeffchen/events{/privacy}","received_events_url":"https://api.github.com/users/EinAeffchen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-03T07:34:58Z","updated_at":"2018-06-13T13:33:12Z","closed_at":null,"author_association":"NONE","body":"```\r\nTraining for 2000 epochs...\r\nTraceback (most recent call last):\r\n  File \".\\train.py\", line 64, in <module>\r\n    loss = train(*random_training_set(args.chunk_len))\r\n  File \".\\train.py\", line 49, in train\r\n    loss += criterion(output, target[c])\r\n  File \"C:\\Users\\leond\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\torch\\nn\\modules\\module.py\", line 491, in __call__\r\n    result = self.forward(*input, **kwargs)\r\n  File \"C:\\Users\\leond\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\torch\\nn\\modules\\loss.py\", line 759, in forward\r\n    self.ignore_index, self.reduce)\r\n  File \"C:\\Users\\leond\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\torch\\nn\\functional.py\", line 1442, in cross_entropy\r\n    return nll_loss(log_softmax(input, 1), target, weight, size_average, ignore_index, reduce)\r\n  File \"C:\\Users\\leond\\AppData\\Local\\Continuum\\Anaconda3\\lib\\site-packages\\torch\\nn\\functional.py\", line 1328, in nll_loss\r\n    if input.size(0) != target.size(0):\r\nRuntimeError: dimension specified as 0 but tensor has no dimensions\r\n```\r\n\r\nJust tried to run train.py with the shakespeare.txt without changing anything"},"comment":{"url":"https://api.github.com/repos/spro/practical-pytorch/issues/comments/396938605","html_url":"https://github.com/spro/practical-pytorch/issues/106#issuecomment-396938605","issue_url":"https://api.github.com/repos/spro/practical-pytorch/issues/106","id":396938605,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjkzODYwNQ==","user":{"login":"joistick11","id":10850123,"node_id":"MDQ6VXNlcjEwODUwMTIz","avatar_url":"https://avatars3.githubusercontent.com/u/10850123?v=4","gravatar_id":"","url":"https://api.github.com/users/joistick11","html_url":"https://github.com/joistick11","followers_url":"https://api.github.com/users/joistick11/followers","following_url":"https://api.github.com/users/joistick11/following{/other_user}","gists_url":"https://api.github.com/users/joistick11/gists{/gist_id}","starred_url":"https://api.github.com/users/joistick11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joistick11/subscriptions","organizations_url":"https://api.github.com/users/joistick11/orgs","repos_url":"https://api.github.com/users/joistick11/repos","events_url":"https://api.github.com/users/joistick11/events{/privacy}","received_events_url":"https://api.github.com/users/joistick11/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T13:33:12Z","updated_at":"2018-06-13T13:33:12Z","author_association":"NONE","body":"This is because of pytorch version"}}
{"actor":{"display_login":"joistick11"}}