{"action":"created","issue":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/1406","repository_url":"https://api.github.com/repos/pytorch/pytorch","labels_url":"https://api.github.com/repos/pytorch/pytorch/issues/1406/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/1406/comments","events_url":"https://api.github.com/repos/pytorch/pytorch/issues/1406/events","html_url":"https://github.com/pytorch/pytorch/issues/1406","id":225277196,"number":1406,"title":"Check input size for CUDA convolutions","user":{"login":"colesbury","id":655866,"avatar_url":"https://avatars2.githubusercontent.com/u/655866?v=3","gravatar_id":"","url":"https://api.github.com/users/colesbury","html_url":"https://github.com/colesbury","followers_url":"https://api.github.com/users/colesbury/followers","following_url":"https://api.github.com/users/colesbury/following{/other_user}","gists_url":"https://api.github.com/users/colesbury/gists{/gist_id}","starred_url":"https://api.github.com/users/colesbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colesbury/subscriptions","organizations_url":"https://api.github.com/users/colesbury/orgs","repos_url":"https://api.github.com/users/colesbury/repos","events_url":"https://api.github.com/users/colesbury/events{/privacy}","received_events_url":"https://api.github.com/users/colesbury/received_events","type":"User","site_admin":false},"labels":[{"id":424131849,"url":"https://api.github.com/repos/pytorch/pytorch/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":443484135,"url":"https://api.github.com/repos/pytorch/pytorch/labels/high%20priority","name":"high priority","color":"F22613","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/pytorch/pytorch/milestones/2","html_url":"https://github.com/pytorch/pytorch/milestone/2","labels_url":"https://api.github.com/repos/pytorch/pytorch/milestones/2/labels","id":2536200,"number":2,"title":"v0.2","description":"","creator":{"login":"apaszke","id":4583066,"avatar_url":"https://avatars0.githubusercontent.com/u/4583066?v=3","gravatar_id":"","url":"https://api.github.com/users/apaszke","html_url":"https://github.com/apaszke","followers_url":"https://api.github.com/users/apaszke/followers","following_url":"https://api.github.com/users/apaszke/following{/other_user}","gists_url":"https://api.github.com/users/apaszke/gists{/gist_id}","starred_url":"https://api.github.com/users/apaszke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apaszke/subscriptions","organizations_url":"https://api.github.com/users/apaszke/orgs","repos_url":"https://api.github.com/users/apaszke/repos","events_url":"https://api.github.com/users/apaszke/events{/privacy}","received_events_url":"https://api.github.com/users/apaszke/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":12,"state":"open","created_at":"2017-05-22T18:19:28Z","updated_at":"2017-06-04T10:57:38Z","due_on":"2017-06-04T07:00:00Z","closed_at":null},"comments":1,"created_at":"2017-04-29T18:47:28Z","updated_at":"2017-06-04T10:59:18Z","closed_at":null,"body":"For example:\r\n\r\n```python\r\nimport torch\r\ninput = torch.autograd.Variable(torch.randn(3, 3, 7, 7))\r\nx = torch.nn.Conv2d(1, 10, 3, 3)\r\n```\r\n\r\nThe CPU version correctly gives an error:\r\n\r\n```python\r\n>>> x(input)\r\nRuntimeError: Need input of dimension 4 and input.size[1] == 1 but got input to be of shape: [3 x 3 x 7 x 7]\r\n```\r\n\r\nBut the CUDA/cuDNN version gives an ambiguous error `RuntimeError: CUDNN_STATUS_BAD_PARAM`:\r\n\r\n```python\r\n>>> x.cuda()(input.cuda())\r\nRuntimeError: CUDNN_STATUS_BAD_PARAM\r\n```"},"comment":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/comments/306033132","html_url":"https://github.com/pytorch/pytorch/issues/1406#issuecomment-306033132","issue_url":"https://api.github.com/repos/pytorch/pytorch/issues/1406","id":306033132,"user":{"login":"apaszke","id":4583066,"avatar_url":"https://avatars0.githubusercontent.com/u/4583066?v=3","gravatar_id":"","url":"https://api.github.com/users/apaszke","html_url":"https://github.com/apaszke","followers_url":"https://api.github.com/users/apaszke/followers","following_url":"https://api.github.com/users/apaszke/following{/other_user}","gists_url":"https://api.github.com/users/apaszke/gists{/gist_id}","starred_url":"https://api.github.com/users/apaszke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apaszke/subscriptions","organizations_url":"https://api.github.com/users/apaszke/orgs","repos_url":"https://api.github.com/users/apaszke/repos","events_url":"https://api.github.com/users/apaszke/events{/privacy}","received_events_url":"https://api.github.com/users/apaszke/received_events","type":"User","site_admin":false},"created_at":"2017-06-04T10:59:18Z","updated_at":"2017-06-04T10:59:18Z","body":"Yes, patches welcome! I don't think you can do this check in the constructor, because it doesn't have the input yet. The checks should probably go into the `apply` function. "}}
{"actor":{"display_login":"apaszke"}}