{"action":"closed","number":5090,"pull_request":{"url":"https://api.github.com/repos/pytorch/pytorch/pulls/5090","id":167537907,"html_url":"https://github.com/pytorch/pytorch/pull/5090","diff_url":"https://github.com/pytorch/pytorch/pull/5090.diff","patch_url":"https://github.com/pytorch/pytorch/pull/5090.patch","issue_url":"https://api.github.com/repos/pytorch/pytorch/issues/5090","number":5090,"state":"closed","locked":false,"title":"Add Variable.item()","user":{"login":"colesbury","id":655866,"avatar_url":"https://avatars1.githubusercontent.com/u/655866?v=4","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},"body":"Variable.item() converts one-element tensors to standard Python numbers.\r\nThis operates like float(var) or int(var) depending on\r\nthe data type of the Variable.\r\n\r\nThe name is take from NumPy's `ndarray.item()` function:\r\n\r\nhttps://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.item.html","created_at":"2018-02-06T21:45:59Z","updated_at":"2018-02-06T22:15:54Z","closed_at":"2018-02-06T22:15:54Z","merged_at":"2018-02-06T22:15:54Z","merge_commit_sha":"c4d3f69053089b62b5736a73f30e7cbe0aef0645","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/pytorch/pytorch/pulls/5090/commits","review_comments_url":"https://api.github.com/repos/pytorch/pytorch/pulls/5090/comments","review_comment_url":"https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/5090/comments","statuses_url":"https://api.github.com/repos/pytorch/pytorch/statuses/dd0a0f31075435de308d4e0e791a7e002d38291b","head":{"label":"colesbury:item","ref":"item","sha":"dd0a0f31075435de308d4e0e791a7e002d38291b","user":{"login":"colesbury","id":655866,"avatar_url":"https://avatars1.githubusercontent.com/u/655866?v=4","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},"repo":{"id":79366698,"name":"pytorch","full_name":"colesbury/pytorch","owner":{"login":"colesbury","id":655866,"avatar_url":"https://avatars1.githubusercontent.com/u/655866?v=4","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},"private":false,"html_url":"https://github.com/colesbury/pytorch","description":null,"fork":true,"url":"https://api.github.com/repos/colesbury/pytorch","forks_url":"https://api.github.com/repos/colesbury/pytorch/forks","keys_url":"https://api.github.com/repos/colesbury/pytorch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/colesbury/pytorch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/colesbury/pytorch/teams","hooks_url":"https://api.github.com/repos/colesbury/pytorch/hooks","issue_events_url":"https://api.github.com/repos/colesbury/pytorch/issues/events{/number}","events_url":"https://api.github.com/repos/colesbury/pytorch/events","assignees_url":"https://api.github.com/repos/colesbury/pytorch/assignees{/user}","branches_url":"https://api.github.com/repos/colesbury/pytorch/branches{/branch}","tags_url":"https://api.github.com/repos/colesbury/pytorch/tags","blobs_url":"https://api.github.com/repos/colesbury/pytorch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/colesbury/pytorch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/colesbury/pytorch/git/refs{/sha}","trees_url":"https://api.github.com/repos/colesbury/pytorch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/colesbury/pytorch/statuses/{sha}","languages_url":"https://api.github.com/repos/colesbury/pytorch/languages","stargazers_url":"https://api.github.com/repos/colesbury/pytorch/stargazers","contributors_url":"https://api.github.com/repos/colesbury/pytorch/contributors","subscribers_url":"https://api.github.com/repos/colesbury/pytorch/subscribers","subscription_url":"https://api.github.com/repos/colesbury/pytorch/subscription","commits_url":"https://api.github.com/repos/colesbury/pytorch/commits{/sha}","git_commits_url":"https://api.github.com/repos/colesbury/pytorch/git/commits{/sha}","comments_url":"https://api.github.com/repos/colesbury/pytorch/comments{/number}","issue_comment_url":"https://api.github.com/repos/colesbury/pytorch/issues/comments{/number}","contents_url":"https://api.github.com/repos/colesbury/pytorch/contents/{+path}","compare_url":"https://api.github.com/repos/colesbury/pytorch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/colesbury/pytorch/merges","archive_url":"https://api.github.com/repos/colesbury/pytorch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/colesbury/pytorch/downloads","issues_url":"https://api.github.com/repos/colesbury/pytorch/issues{/number}","pulls_url":"https://api.github.com/repos/colesbury/pytorch/pulls{/number}","milestones_url":"https://api.github.com/repos/colesbury/pytorch/milestones{/number}","notifications_url":"https://api.github.com/repos/colesbury/pytorch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/colesbury/pytorch/labels{/name}","releases_url":"https://api.github.com/repos/colesbury/pytorch/releases{/id}","deployments_url":"https://api.github.com/repos/colesbury/pytorch/deployments","created_at":"2017-01-18T17:47:38Z","updated_at":"2017-01-18T17:47:43Z","pushed_at":"2018-02-06T22:12:22Z","git_url":"git://github.com/colesbury/pytorch.git","ssh_url":"git@github.com:colesbury/pytorch.git","clone_url":"https://github.com/colesbury/pytorch.git","svn_url":"https://github.com/colesbury/pytorch","homepage":"http://pytorch.org","size":25086,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pytorch:master","ref":"master","sha":"36bbaf0d859ff052ac6e991b7d909e9ff15ae70f","user":{"login":"pytorch","id":21003710,"avatar_url":"https://avatars3.githubusercontent.com/u/21003710?v=4","gravatar_id":"","url":"https://api.github.com/users/pytorch","html_url":"https://github.com/pytorch","followers_url":"https://api.github.com/users/pytorch/followers","following_url":"https://api.github.com/users/pytorch/following{/other_user}","gists_url":"https://api.github.com/users/pytorch/gists{/gist_id}","starred_url":"https://api.github.com/users/pytorch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pytorch/subscriptions","organizations_url":"https://api.github.com/users/pytorch/orgs","repos_url":"https://api.github.com/users/pytorch/repos","events_url":"https://api.github.com/users/pytorch/events{/privacy}","received_events_url":"https://api.github.com/users/pytorch/received_events","type":"Organization","site_admin":false},"repo":{"id":65600975,"name":"pytorch","full_name":"pytorch/pytorch","owner":{"login":"pytorch","id":21003710,"avatar_url":"https://avatars3.githubusercontent.com/u/21003710?v=4","gravatar_id":"","url":"https://api.github.com/users/pytorch","html_url":"https://github.com/pytorch","followers_url":"https://api.github.com/users/pytorch/followers","following_url":"https://api.github.com/users/pytorch/following{/other_user}","gists_url":"https://api.github.com/users/pytorch/gists{/gist_id}","starred_url":"https://api.github.com/users/pytorch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pytorch/subscriptions","organizations_url":"https://api.github.com/users/pytorch/orgs","repos_url":"https://api.github.com/users/pytorch/repos","events_url":"https://api.github.com/users/pytorch/events{/privacy}","received_events_url":"https://api.github.com/users/pytorch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pytorch/pytorch","description":"Tensors and Dynamic neural networks in Python  with strong GPU acceleration","fork":false,"url":"https://api.github.com/repos/pytorch/pytorch","forks_url":"https://api.github.com/repos/pytorch/pytorch/forks","keys_url":"https://api.github.com/repos/pytorch/pytorch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pytorch/pytorch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pytorch/pytorch/teams","hooks_url":"https://api.github.com/repos/pytorch/pytorch/hooks","issue_events_url":"https://api.github.com/repos/pytorch/pytorch/issues/events{/number}","events_url":"https://api.github.com/repos/pytorch/pytorch/events","assignees_url":"https://api.github.com/repos/pytorch/pytorch/assignees{/user}","branches_url":"https://api.github.com/repos/pytorch/pytorch/branches{/branch}","tags_url":"https://api.github.com/repos/pytorch/pytorch/tags","blobs_url":"https://api.github.com/repos/pytorch/pytorch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pytorch/pytorch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pytorch/pytorch/git/refs{/sha}","trees_url":"https://api.github.com/repos/pytorch/pytorch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pytorch/pytorch/statuses/{sha}","languages_url":"https://api.github.com/repos/pytorch/pytorch/languages","stargazers_url":"https://api.github.com/repos/pytorch/pytorch/stargazers","contributors_url":"https://api.github.com/repos/pytorch/pytorch/contributors","subscribers_url":"https://api.github.com/repos/pytorch/pytorch/subscribers","subscription_url":"https://api.github.com/repos/pytorch/pytorch/subscription","commits_url":"https://api.github.com/repos/pytorch/pytorch/commits{/sha}","git_commits_url":"https://api.github.com/repos/pytorch/pytorch/git/commits{/sha}","comments_url":"https://api.github.com/repos/pytorch/pytorch/comments{/number}","issue_comment_url":"https://api.github.com/repos/pytorch/pytorch/issues/comments{/number}","contents_url":"https://api.github.com/repos/pytorch/pytorch/contents/{+path}","compare_url":"https://api.github.com/repos/pytorch/pytorch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pytorch/pytorch/merges","archive_url":"https://api.github.com/repos/pytorch/pytorch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pytorch/pytorch/downloads","issues_url":"https://api.github.com/repos/pytorch/pytorch/issues{/number}","pulls_url":"https://api.github.com/repos/pytorch/pytorch/pulls{/number}","milestones_url":"https://api.github.com/repos/pytorch/pytorch/milestones{/number}","notifications_url":"https://api.github.com/repos/pytorch/pytorch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pytorch/pytorch/labels{/name}","releases_url":"https://api.github.com/repos/pytorch/pytorch/releases{/id}","deployments_url":"https://api.github.com/repos/pytorch/pytorch/deployments","created_at":"2016-08-13T05:26:41Z","updated_at":"2018-02-06T22:12:44Z","pushed_at":"2018-02-06T22:15:54Z","git_url":"git://github.com/pytorch/pytorch.git","ssh_url":"git@github.com:pytorch/pytorch.git","clone_url":"https://github.com/pytorch/pytorch.git","svn_url":"https://github.com/pytorch/pytorch","homepage":"http://pytorch.org","size":22074,"stargazers_count":12073,"watchers_count":12073,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2507,"mirror_url":null,"archived":false,"open_issues_count":702,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":2507,"open_issues":702,"watchers":12073,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/5090"},"html":{"href":"https://github.com/pytorch/pytorch/pull/5090"},"issue":{"href":"https://api.github.com/repos/pytorch/pytorch/issues/5090"},"comments":{"href":"https://api.github.com/repos/pytorch/pytorch/issues/5090/comments"},"review_comments":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/5090/comments"},"review_comment":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/5090/commits"},"statuses":{"href":"https://api.github.com/repos/pytorch/pytorch/statuses/dd0a0f31075435de308d4e0e791a7e002d38291b"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"colesbury","id":655866,"avatar_url":"https://avatars1.githubusercontent.com/u/655866?v=4","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},"comments":0,"review_comments":2,"maintainer_can_modify":false,"commits":1,"additions":34,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"colesbury"}}