{"action":"created","issue":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/6129","repository_url":"https://api.github.com/repos/pytorch/pytorch","labels_url":"https://api.github.com/repos/pytorch/pytorch/issues/6129/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/6129/comments","events_url":"https://api.github.com/repos/pytorch/pytorch/issues/6129/events","html_url":"https://github.com/pytorch/pytorch/issues/6129","id":310063666,"number":6129,"title":"A problem or bug in pytorch 0.4.0a0+063946d ?","user":{"login":"lxtGH","id":17202268,"avatar_url":"https://avatars1.githubusercontent.com/u/17202268?v=4","gravatar_id":"","url":"https://api.github.com/users/lxtGH","html_url":"https://github.com/lxtGH","followers_url":"https://api.github.com/users/lxtGH/followers","following_url":"https://api.github.com/users/lxtGH/following{/other_user}","gists_url":"https://api.github.com/users/lxtGH/gists{/gist_id}","starred_url":"https://api.github.com/users/lxtGH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lxtGH/subscriptions","organizations_url":"https://api.github.com/users/lxtGH/orgs","repos_url":"https://api.github.com/users/lxtGH/repos","events_url":"https://api.github.com/users/lxtGH/events{/privacy}","received_events_url":"https://api.github.com/users/lxtGH/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-30T13:16:02Z","updated_at":"2018-03-30T15:16:41Z","closed_at":"2018-03-30T14:27:55Z","author_association":"NONE","body":"I update my pytorch version to new 0.4 today, but I found my code cann't  run \r\nMy enviroment: \r\n- OS: Ubuntu16.04.3 LTS\r\n- PyTorch version: 0.4.0a0+063946d\r\n- How you installed PyTorch (conda, pip, source): source\r\n- Python version: 3.6\r\n- CUDA/cuDNN version: 9.0\r\n- GCC version (if compiling from source):gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)\r\nrun the code like this:\r\n\r\nimport numpy as np\r\nimport torch\r\nfrom torch.autograd import Variable\r\nshape = (512, 512)\r\nout = np.ones(shape=(shape[0], shape[1]), dtype=np.float32) * 250\r\nout = torch.from_numpy(out).long()\r\nout = Variable(out)\r\nmask = out > 0\r\n**print(mask.data.sum())**\r\n\r\nthis result got zero ?   the sum() function work wrongly? or the new API change? help me !\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/comments/377547256","html_url":"https://github.com/pytorch/pytorch/issues/6129#issuecomment-377547256","issue_url":"https://api.github.com/repos/pytorch/pytorch/issues/6129","id":377547256,"user":{"login":"lxtGH","id":17202268,"avatar_url":"https://avatars1.githubusercontent.com/u/17202268?v=4","gravatar_id":"","url":"https://api.github.com/users/lxtGH","html_url":"https://github.com/lxtGH","followers_url":"https://api.github.com/users/lxtGH/followers","following_url":"https://api.github.com/users/lxtGH/following{/other_user}","gists_url":"https://api.github.com/users/lxtGH/gists{/gist_id}","starred_url":"https://api.github.com/users/lxtGH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lxtGH/subscriptions","organizations_url":"https://api.github.com/users/lxtGH/orgs","repos_url":"https://api.github.com/users/lxtGH/repos","events_url":"https://api.github.com/users/lxtGH/events{/privacy}","received_events_url":"https://api.github.com/users/lxtGH/received_events","type":"User","site_admin":false},"created_at":"2018-03-30T15:16:41Z","updated_at":"2018-03-30T15:16:41Z","author_association":"NONE","body":"@colesbury Thank you for your reply !!!! "}}
{"actor":{"display_login":"lxtGH"}}