{"action":"opened","number":3212,"pull_request":{"url":"https://api.github.com/repos/pytorch/pytorch/pulls/3212","id":147904317,"html_url":"https://github.com/pytorch/pytorch/pull/3212","diff_url":"https://github.com/pytorch/pytorch/pull/3212.diff","patch_url":"https://github.com/pytorch/pytorch/pull/3212.patch","issue_url":"https://api.github.com/repos/pytorch/pytorch/issues/3212","number":3212,"state":"open","locked":false,"title":"Don't create grad_fn if requires_grad=False","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":"```\r\nDon't create grad_fn if requires_grad=False\r\n\r\nOther changes:\r\n\r\n - Check that arguments without derivative definitions have\r\n   requires_grad=False\r\n - Pass all tensor arguments to the tracer, including ones without\r\n   derivative definitions\r\n````\r\n\r\nNote that this may trigger errors in the calls to `backwards()` if any of the outputs have requires_grad=False, since now they will not have a grad_fn. I suspect that this mostly occurs in tests, but we may want to relax the check to issue a warning instead of raising an error.","created_at":"2017-10-20T22:02:23Z","updated_at":"2017-10-20T22:02:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/pytorch/pytorch/pulls/3212/commits","review_comments_url":"https://api.github.com/repos/pytorch/pytorch/pulls/3212/comments","review_comment_url":"https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/3212/comments","statuses_url":"https://api.github.com/repos/pytorch/pytorch/statuses/69cc2ba56dd94ff8731e7f18ff506ead115179d9","head":{"label":"colesbury:no_grad_fn","ref":"no_grad_fn","sha":"69cc2ba56dd94ff8731e7f18ff506ead115179d9","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":"2017-10-20T21:59:27Z","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":18922,"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,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pytorch:master","ref":"master","sha":"53fe804322640653d2dddaed394838b868ce9a26","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":"2017-10-20T20:53:08Z","pushed_at":"2017-10-20T21:50:16Z","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":16423,"stargazers_count":8312,"watchers_count":8312,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1727,"mirror_url":null,"archived":false,"open_issues_count":419,"forks":1727,"open_issues":419,"watchers":8312,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/3212"},"html":{"href":"https://github.com/pytorch/pytorch/pull/3212"},"issue":{"href":"https://api.github.com/repos/pytorch/pytorch/issues/3212"},"comments":{"href":"https://api.github.com/repos/pytorch/pytorch/issues/3212/comments"},"review_comments":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/3212/comments"},"review_comment":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/3212/commits"},"statuses":{"href":"https://api.github.com/repos/pytorch/pytorch/statuses/69cc2ba56dd94ff8731e7f18ff506ead115179d9"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":187,"deletions":131,"changed_files":3}}
{"actor":{"display_login":"colesbury"}}