{"action":"created","comment":{"url":"https://api.github.com/repos/pytorch/pytorch/pulls/comments/223159420","pull_request_review_id":162228866,"id":223159420,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzE1OTQyMA==","diff_hunk":"@@ -466,6 +466,18 @@ RegisterOperators reg({\n             };\n           }\n         }),\n+    // TODO schema\n+    Operator(prim::Fork, [](Node* stack) -> Operation {\n+      return [=](Stack& stack) -> int {\n+        throw detail::NewCoroutine();","path":"torch/csrc/jit/register_prim_ops.cpp","position":7,"original_position":7,"commit_id":"ae4a50ff51e5b10af7bd0befc52acc755bc80457","original_commit_id":"ae4a50ff51e5b10af7bd0befc52acc755bc80457","user":{"login":"zdevito","id":370202,"node_id":"MDQ6VXNlcjM3MDIwMg==","avatar_url":"https://avatars0.githubusercontent.com/u/370202?v=4","gravatar_id":"","url":"https://api.github.com/users/zdevito","html_url":"https://github.com/zdevito","followers_url":"https://api.github.com/users/zdevito/followers","following_url":"https://api.github.com/users/zdevito/following{/other_user}","gists_url":"https://api.github.com/users/zdevito/gists{/gist_id}","starred_url":"https://api.github.com/users/zdevito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdevito/subscriptions","organizations_url":"https://api.github.com/users/zdevito/orgs","repos_url":"https://api.github.com/users/zdevito/repos","events_url":"https://api.github.com/users/zdevito/events{/privacy}","received_events_url":"https://api.github.com/users/zdevito/received_events","type":"User","site_admin":false},"body":"This won't throw an exception in the real implementation (control in the caller always continues) normally after a fork. Here is where the task will be added to the scheduler, the task hooked up to a future, and the future returned.","created_at":"2018-10-05T23:19:57Z","updated_at":"2018-10-05T23:32:24Z","html_url":"https://github.com/pytorch/pytorch/pull/12405#discussion_r223159420","pull_request_url":"https://api.github.com/repos/pytorch/pytorch/pulls/12405","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/comments/223159420"},"html":{"href":"https://github.com/pytorch/pytorch/pull/12405#discussion_r223159420"},"pull_request":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/12405"}}},"pull_request":{"url":"https://api.github.com/repos/pytorch/pytorch/pulls/12405","id":220844519,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwODQ0NTE5","html_url":"https://github.com/pytorch/pytorch/pull/12405","diff_url":"https://github.com/pytorch/pytorch/pull/12405.diff","patch_url":"https://github.com/pytorch/pytorch/pull/12405.patch","issue_url":"https://api.github.com/repos/pytorch/pytorch/issues/12405","number":12405,"state":"open","locked":false,"title":"[WIP][JIT][Fork/Join] Stage 1: Eager fork-join","user":{"login":"jamesr66a","id":4685384,"node_id":"MDQ6VXNlcjQ2ODUzODQ=","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":"Establishing the front-end APIs for explicit fork/join parallelism. At runtime the forked sections are inlined, and wait is eliminated.\r\n\r\nForthcoming work is to implement lazy evaluation via coroutines. After that we can add true parallelism.\r\n\r\nTODO: Figure out if this works in the string frontend\r\nTODO: Remove remnants of coroutine implementation that got left in while i did a sketchy rebase","created_at":"2018-10-05T23:03:56Z","updated_at":"2018-10-05T23:32:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8933cad25e4d95449939d6bc4944e1ed099dff70","assignee":null,"assignees":[],"requested_reviewers":[{"login":"ezyang","id":13564,"node_id":"MDQ6VXNlcjEzNTY0","avatar_url":"https://avatars0.githubusercontent.com/u/13564?v=4","gravatar_id":"","url":"https://api.github.com/users/ezyang","html_url":"https://github.com/ezyang","followers_url":"https://api.github.com/users/ezyang/followers","following_url":"https://api.github.com/users/ezyang/following{/other_user}","gists_url":"https://api.github.com/users/ezyang/gists{/gist_id}","starred_url":"https://api.github.com/users/ezyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezyang/subscriptions","organizations_url":"https://api.github.com/users/ezyang/orgs","repos_url":"https://api.github.com/users/ezyang/repos","events_url":"https://api.github.com/users/ezyang/events{/privacy}","received_events_url":"https://api.github.com/users/ezyang/received_events","type":"User","site_admin":false},{"login":"colesbury","id":655866,"node_id":"MDQ6VXNlcjY1NTg2Ng==","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},{"login":"soumith","id":1310570,"node_id":"MDQ6VXNlcjEzMTA1NzA=","avatar_url":"https://avatars0.githubusercontent.com/u/1310570?v=4","gravatar_id":"","url":"https://api.github.com/users/soumith","html_url":"https://github.com/soumith","followers_url":"https://api.github.com/users/soumith/followers","following_url":"https://api.github.com/users/soumith/following{/other_user}","gists_url":"https://api.github.com/users/soumith/gists{/gist_id}","starred_url":"https://api.github.com/users/soumith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soumith/subscriptions","organizations_url":"https://api.github.com/users/soumith/orgs","repos_url":"https://api.github.com/users/soumith/repos","events_url":"https://api.github.com/users/soumith/events{/privacy}","received_events_url":"https://api.github.com/users/soumith/received_events","type":"User","site_admin":false},{"login":"gchanan","id":3768583,"node_id":"MDQ6VXNlcjM3Njg1ODM=","avatar_url":"https://avatars2.githubusercontent.com/u/3768583?v=4","gravatar_id":"","url":"https://api.github.com/users/gchanan","html_url":"https://github.com/gchanan","followers_url":"https://api.github.com/users/gchanan/followers","following_url":"https://api.github.com/users/gchanan/following{/other_user}","gists_url":"https://api.github.com/users/gchanan/gists{/gist_id}","starred_url":"https://api.github.com/users/gchanan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gchanan/subscriptions","organizations_url":"https://api.github.com/users/gchanan/orgs","repos_url":"https://api.github.com/users/gchanan/repos","events_url":"https://api.github.com/users/gchanan/events{/privacy}","received_events_url":"https://api.github.com/users/gchanan/received_events","type":"User","site_admin":false},{"login":"apaszke","id":4583066,"node_id":"MDQ6VXNlcjQ1ODMwNjY=","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}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pytorch/pytorch/pulls/12405/commits","review_comments_url":"https://api.github.com/repos/pytorch/pytorch/pulls/12405/comments","review_comment_url":"https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/12405/comments","statuses_url":"https://api.github.com/repos/pytorch/pytorch/statuses/ae4a50ff51e5b10af7bd0befc52acc755bc80457","head":{"label":"jamesr66a:async_1_eager","ref":"async_1_eager","sha":"ae4a50ff51e5b10af7bd0befc52acc755bc80457","user":{"login":"jamesr66a","id":4685384,"node_id":"MDQ6VXNlcjQ2ODUzODQ=","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,"node_id":"MDEwOlJlcG9zaXRvcnkxMDgzMDAyNDM=","name":"pytorch","full_name":"jamesr66a/pytorch","private":false,"owner":{"login":"jamesr66a","id":4685384,"node_id":"MDQ6VXNlcjQ2ODUzODQ=","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},"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":"2018-08-06T22:44:22Z","pushed_at":"2018-10-05T23:02:14Z","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":77320,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pytorch:master","ref":"master","sha":"57fcc57f31da61d5216ec57928ec469d2b819b9e","user":{"login":"pytorch","id":21003710,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMDAzNzEw","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,"node_id":"MDEwOlJlcG9zaXRvcnk2NTYwMDk3NQ==","name":"pytorch","full_name":"pytorch/pytorch","private":false,"owner":{"login":"pytorch","id":21003710,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMDAzNzEw","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},"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-10-05T23:26:22Z","pushed_at":"2018-10-05T23:26:49Z","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":78101,"stargazers_count":19547,"watchers_count":19547,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4637,"mirror_url":null,"archived":false,"open_issues_count":1879,"license":{"key":"other","name":"NOASSERTION","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":4637,"open_issues":1879,"watchers":19547,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/12405"},"html":{"href":"https://github.com/pytorch/pytorch/pull/12405"},"issue":{"href":"https://api.github.com/repos/pytorch/pytorch/issues/12405"},"comments":{"href":"https://api.github.com/repos/pytorch/pytorch/issues/12405/comments"},"review_comments":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/12405/comments"},"review_comment":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/12405/commits"},"statuses":{"href":"https://api.github.com/repos/pytorch/pytorch/statuses/ae4a50ff51e5b10af7bd0befc52acc755bc80457"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"zdevito"}}