{"action":"opened","issue":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/4979","repository_url":"https://api.github.com/repos/pytorch/pytorch","labels_url":"https://api.github.com/repos/pytorch/pytorch/issues/4979/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/4979/comments","events_url":"https://api.github.com/repos/pytorch/pytorch/issues/4979/events","html_url":"https://github.com/pytorch/pytorch/issues/4979","id":293377406,"number":4979,"title":"Assigning to a `resize_`ed slice is broken","user":{"login":"zou3519","id":5652049,"avatar_url":"https://avatars3.githubusercontent.com/u/5652049?v=4","gravatar_id":"","url":"https://api.github.com/users/zou3519","html_url":"https://github.com/zou3519","followers_url":"https://api.github.com/users/zou3519/followers","following_url":"https://api.github.com/users/zou3519/following{/other_user}","gists_url":"https://api.github.com/users/zou3519/gists{/gist_id}","starred_url":"https://api.github.com/users/zou3519/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zou3519/subscriptions","organizations_url":"https://api.github.com/users/zou3519/orgs","repos_url":"https://api.github.com/users/zou3519/repos","events_url":"https://api.github.com/users/zou3519/events{/privacy}","received_events_url":"https://api.github.com/users/zou3519/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-01T01:58:49Z","updated_at":"2018-02-01T01:58:49Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The following code\r\n```\r\nimport torch\r\na = torch.ones(5, 3)\r\ny = a[:,1].resize_(1, 5)\r\ny[0] = torch.arange(0, 5)\r\n```\r\nproduces the following output for `a`:\r\n```\r\n1  0  1\r\n2  3  4\r\n1  1  1\r\n1  1  1\r\n1  1  1\r\n```\r\nBut, as the user, you'd really expect the code to look like:\r\n```\r\n1  0  1\r\n1  1  1\r\n1  2  1\r\n1  3  1\r\n1  4  1\r\n```"}}
{"actor":{"display_login":"zou3519"}}