{"action":"created","issue":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/8808","repository_url":"https://api.github.com/repos/pytorch/pytorch","labels_url":"https://api.github.com/repos/pytorch/pytorch/issues/8808/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/8808/comments","events_url":"https://api.github.com/repos/pytorch/pytorch/issues/8808/events","html_url":"https://github.com/pytorch/pytorch/pull/8808","id":335033327,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2ODU2MTEx","number":8808,"title":"Add a Constant Propagation Pass to the JIT","user":{"login":"eellison","id":11477974,"node_id":"MDQ6VXNlcjExNDc3OTc0","avatar_url":"https://avatars2.githubusercontent.com/u/11477974?v=4","gravatar_id":"","url":"https://api.github.com/users/eellison","html_url":"https://github.com/eellison","followers_url":"https://api.github.com/users/eellison/followers","following_url":"https://api.github.com/users/eellison/following{/other_user}","gists_url":"https://api.github.com/users/eellison/gists{/gist_id}","starred_url":"https://api.github.com/users/eellison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eellison/subscriptions","organizations_url":"https://api.github.com/users/eellison/orgs","repos_url":"https://api.github.com/users/eellison/repos","events_url":"https://api.github.com/users/eellison/events{/privacy}","received_events_url":"https://api.github.com/users/eellison/received_events","type":"User","site_admin":false},"labels":[{"id":679953983,"node_id":"MDU6TGFiZWw2Nzk5NTM5ODM=","url":"https://api.github.com/repos/pytorch/pytorch/labels/jit","name":"jit","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-06-22T22:09:55Z","updated_at":"2018-07-25T01:22:58Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/pytorch/pytorch/pulls/8808","html_url":"https://github.com/pytorch/pytorch/pull/8808","diff_url":"https://github.com/pytorch/pytorch/pull/8808.diff","patch_url":"https://github.com/pytorch/pytorch/pull/8808.patch"},"body":"Adding a constant propagation pass to the JIT. I have added examples to the expect files. \r\n\r\nThere are a couple of special cases which have not been implemented here. IF nodes with constant conditions can be inlined with the correct block. WHILE nodes can be removed if the condition is false.  I have added a test for each case in test_jit.py file as expected failures.\r\n\r\nTo be consistent with DCE, python ops & CPP ops are treated as not having side-effects.  "},"comment":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/comments/407602317","html_url":"https://github.com/pytorch/pytorch/pull/8808#issuecomment-407602317","issue_url":"https://api.github.com/repos/pytorch/pytorch/issues/8808","id":407602317,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzYwMjMxNw==","user":{"login":"eellison","id":11477974,"node_id":"MDQ6VXNlcjExNDc3OTc0","avatar_url":"https://avatars2.githubusercontent.com/u/11477974?v=4","gravatar_id":"","url":"https://api.github.com/users/eellison","html_url":"https://github.com/eellison","followers_url":"https://api.github.com/users/eellison/followers","following_url":"https://api.github.com/users/eellison/following{/other_user}","gists_url":"https://api.github.com/users/eellison/gists{/gist_id}","starred_url":"https://api.github.com/users/eellison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eellison/subscriptions","organizations_url":"https://api.github.com/users/eellison/orgs","repos_url":"https://api.github.com/users/eellison/repos","events_url":"https://api.github.com/users/eellison/events{/privacy}","received_events_url":"https://api.github.com/users/eellison/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T01:22:58Z","updated_at":"2018-07-25T01:22:58Z","author_association":"NONE","body":"@pytorchbot retest this please"}}
{"actor":{"display_login":"eellison"}}