{"action":"created","comment":{"url":"https://api.github.com/repos/pytorch/pytorch/pulls/comments/168133897","pull_request_review_id":96448987,"id":168133897,"diff_hunk":"@@ -34,23 +34,127 @@ using ListAttributeMap = std::unordered_map<\n     std::string,\n     std::pair<const std::vector<double>, std::string>>;\n \n+// Keep track of environment as we descend down nested control\n+// structures.\n+struct Environment {","path":"torch/csrc/jit/script/compiler.cpp","position":6,"original_position":6,"commit_id":"3d3c8d6f42f779a122372680bc15beb10fce20d8","original_commit_id":"3d3c8d6f42f779a122372680bc15beb10fce20d8","user":{"login":"apaszke","id":4583066,"avatar_url":"https://avatars3.githubusercontent.com/u/4583066?v=4","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},"body":"Also, it would be nice to document the  whole `captured_inputs` + `deleteExtraInputs` business","created_at":"2018-02-14T10:32:12Z","updated_at":"2018-02-14T10:38:39Z","html_url":"https://github.com/pytorch/pytorch/pull/5176#discussion_r168133897","pull_request_url":"https://api.github.com/repos/pytorch/pytorch/pulls/5176","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/comments/168133897"},"html":{"href":"https://github.com/pytorch/pytorch/pull/5176#discussion_r168133897"},"pull_request":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/5176"}},"in_reply_to_id":168086841},"pull_request":{"url":"https://api.github.com/repos/pytorch/pytorch/pulls/5176","id":168436910,"html_url":"https://github.com/pytorch/pytorch/pull/5176","diff_url":"https://github.com/pytorch/pytorch/pull/5176.diff","patch_url":"https://github.com/pytorch/pytorch/pull/5176.patch","issue_url":"https://api.github.com/repos/pytorch/pytorch/issues/5176","number":5176,"state":"open","locked":false,"title":"while and if for experimental JIT script","user":{"login":"jamesr66a","id":4685384,"avatar_url":"https://avatars2.githubusercontent.com/u/4685384?v=4","gravatar_id":"","url":"https://api.github.com/users/jamesr66a","html_url":"https://github.com/jamesr66a","followers_url":"https://api.github.com/users/jamesr66a/followers","following_url":"https://api.github.com/users/jamesr66a/following{/other_user}","gists_url":"https://api.github.com/users/jamesr66a/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesr66a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesr66a/subscriptions","organizations_url":"https://api.github.com/users/jamesr66a/orgs","repos_url":"https://api.github.com/users/jamesr66a/repos","events_url":"https://api.github.com/users/jamesr66a/events{/privacy}","received_events_url":"https://api.github.com/users/jamesr66a/received_events","type":"User","site_admin":false},"body":"Constructs presented in the test cases can now be emitted by the script","created_at":"2018-02-11T05:10:09Z","updated_at":"2018-02-14T10:38:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aaafef3a4f9fa2ef47596c81bc2985d821761e25","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pytorch/pytorch/pulls/5176/commits","review_comments_url":"https://api.github.com/repos/pytorch/pytorch/pulls/5176/comments","review_comment_url":"https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/5176/comments","statuses_url":"https://api.github.com/repos/pytorch/pytorch/statuses/3d3c8d6f42f779a122372680bc15beb10fce20d8","head":{"label":"jamesr66a:jitscript_semifinal","ref":"jitscript_semifinal","sha":"3d3c8d6f42f779a122372680bc15beb10fce20d8","user":{"login":"jamesr66a","id":4685384,"avatar_url":"https://avatars2.githubusercontent.com/u/4685384?v=4","gravatar_id":"","url":"https://api.github.com/users/jamesr66a","html_url":"https://github.com/jamesr66a","followers_url":"https://api.github.com/users/jamesr66a/followers","following_url":"https://api.github.com/users/jamesr66a/following{/other_user}","gists_url":"https://api.github.com/users/jamesr66a/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesr66a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesr66a/subscriptions","organizations_url":"https://api.github.com/users/jamesr66a/orgs","repos_url":"https://api.github.com/users/jamesr66a/repos","events_url":"https://api.github.com/users/jamesr66a/events{/privacy}","received_events_url":"https://api.github.com/users/jamesr66a/received_events","type":"User","site_admin":false},"repo":{"id":108300243,"name":"pytorch","full_name":"jamesr66a/pytorch","owner":{"login":"jamesr66a","id":4685384,"avatar_url":"https://avatars2.githubusercontent.com/u/4685384?v=4","gravatar_id":"","url":"https://api.github.com/users/jamesr66a","html_url":"https://github.com/jamesr66a","followers_url":"https://api.github.com/users/jamesr66a/followers","following_url":"https://api.github.com/users/jamesr66a/following{/other_user}","gists_url":"https://api.github.com/users/jamesr66a/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesr66a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesr66a/subscriptions","organizations_url":"https://api.github.com/users/jamesr66a/orgs","repos_url":"https://api.github.com/users/jamesr66a/repos","events_url":"https://api.github.com/users/jamesr66a/events{/privacy}","received_events_url":"https://api.github.com/users/jamesr66a/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jamesr66a/pytorch","description":"Tensors and Dynamic neural networks in Python  with strong GPU acceleration","fork":true,"url":"https://api.github.com/repos/jamesr66a/pytorch","forks_url":"https://api.github.com/repos/jamesr66a/pytorch/forks","keys_url":"https://api.github.com/repos/jamesr66a/pytorch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jamesr66a/pytorch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jamesr66a/pytorch/teams","hooks_url":"https://api.github.com/repos/jamesr66a/pytorch/hooks","issue_events_url":"https://api.github.com/repos/jamesr66a/pytorch/issues/events{/number}","events_url":"https://api.github.com/repos/jamesr66a/pytorch/events","assignees_url":"https://api.github.com/repos/jamesr66a/pytorch/assignees{/user}","branches_url":"https://api.github.com/repos/jamesr66a/pytorch/branches{/branch}","tags_url":"https://api.github.com/repos/jamesr66a/pytorch/tags","blobs_url":"https://api.github.com/repos/jamesr66a/pytorch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jamesr66a/pytorch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jamesr66a/pytorch/git/refs{/sha}","trees_url":"https://api.github.com/repos/jamesr66a/pytorch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jamesr66a/pytorch/statuses/{sha}","languages_url":"https://api.github.com/repos/jamesr66a/pytorch/languages","stargazers_url":"https://api.github.com/repos/jamesr66a/pytorch/stargazers","contributors_url":"https://api.github.com/repos/jamesr66a/pytorch/contributors","subscribers_url":"https://api.github.com/repos/jamesr66a/pytorch/subscribers","subscription_url":"https://api.github.com/repos/jamesr66a/pytorch/subscription","commits_url":"https://api.github.com/repos/jamesr66a/pytorch/commits{/sha}","git_commits_url":"https://api.github.com/repos/jamesr66a/pytorch/git/commits{/sha}","comments_url":"https://api.github.com/repos/jamesr66a/pytorch/comments{/number}","issue_comment_url":"https://api.github.com/repos/jamesr66a/pytorch/issues/comments{/number}","contents_url":"https://api.github.com/repos/jamesr66a/pytorch/contents/{+path}","compare_url":"https://api.github.com/repos/jamesr66a/pytorch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jamesr66a/pytorch/merges","archive_url":"https://api.github.com/repos/jamesr66a/pytorch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jamesr66a/pytorch/downloads","issues_url":"https://api.github.com/repos/jamesr66a/pytorch/issues{/number}","pulls_url":"https://api.github.com/repos/jamesr66a/pytorch/pulls{/number}","milestones_url":"https://api.github.com/repos/jamesr66a/pytorch/milestones{/number}","notifications_url":"https://api.github.com/repos/jamesr66a/pytorch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jamesr66a/pytorch/labels{/name}","releases_url":"https://api.github.com/repos/jamesr66a/pytorch/releases{/id}","deployments_url":"https://api.github.com/repos/jamesr66a/pytorch/deployments","created_at":"2017-10-25T17:06:33Z","updated_at":"2017-10-25T17:06:38Z","pushed_at":"2018-02-13T23:48:35Z","git_url":"git://github.com/jamesr66a/pytorch.git","ssh_url":"git@github.com:jamesr66a/pytorch.git","clone_url":"https://github.com/jamesr66a/pytorch.git","svn_url":"https://github.com/jamesr66a/pytorch","homepage":"http://pytorch.org","size":22717,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pytorch:master","ref":"master","sha":"f96f3c312d54eaa4db5294b889bd8f86d8c896cf","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-14T09:39:55Z","pushed_at":"2018-02-14T07:14:41Z","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":22721,"stargazers_count":12231,"watchers_count":12231,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2551,"mirror_url":null,"archived":false,"open_issues_count":722,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":2551,"open_issues":722,"watchers":12231,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/5176"},"html":{"href":"https://github.com/pytorch/pytorch/pull/5176"},"issue":{"href":"https://api.github.com/repos/pytorch/pytorch/issues/5176"},"comments":{"href":"https://api.github.com/repos/pytorch/pytorch/issues/5176/comments"},"review_comments":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/5176/comments"},"review_comment":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/5176/commits"},"statuses":{"href":"https://api.github.com/repos/pytorch/pytorch/statuses/3d3c8d6f42f779a122372680bc15beb10fce20d8"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"apaszke"}}