{"action":"opened","number":10198,"pull_request":{"url":"https://api.github.com/repos/pytorch/pytorch/pulls/10198","id":205935346,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1OTM1MzQ2","html_url":"https://github.com/pytorch/pytorch/pull/10198","diff_url":"https://github.com/pytorch/pytorch/pull/10198.diff","patch_url":"https://github.com/pytorch/pytorch/pull/10198.patch","issue_url":"https://api.github.com/repos/pytorch/pytorch/issues/10198","number":10198,"state":"open","locked":false,"title":"Schema-based creation of graph nodes","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 commit adds the ability to insert a node with inputs, using the schema to check the inputs are valid types, fill in any default values, and perform standard implicit conversions. Since it is schema based, it will discover and use the right overload. \r\nConstructors to `NamedValue` enable it to be constructed using `IValue` constants so it is possible to use constant values in the input list as well:\r\n\r\n```\r\ng.insert(aten::add, {v, 3});\r\n```\r\n \r\nKeyword arguments are also supported:\r\n\r\n```\r\ng.insert(aten::add, {v}, {{\"other\", t}, {\"scalar\", 1}});\r\n```\r\n","created_at":"2018-08-03T06:18:17Z","updated_at":"2018-08-03T06:18:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pytorch/pytorch/pulls/10198/commits","review_comments_url":"https://api.github.com/repos/pytorch/pytorch/pulls/10198/comments","review_comment_url":"https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/10198/comments","statuses_url":"https://api.github.com/repos/pytorch/pytorch/statuses/f8bb0863e4904a894840e9ce4ea48cb7ccd056ad","head":{"label":"zdevito:pr/graph_insert","ref":"pr/graph_insert","sha":"f8bb0863e4904a894840e9ce4ea48cb7ccd056ad","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},"repo":{"id":93195556,"node_id":"MDEwOlJlcG9zaXRvcnk5MzE5NTU1Ng==","name":"pytorch","full_name":"zdevito/pytorch","owner":{"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},"private":false,"html_url":"https://github.com/zdevito/pytorch","description":"Tensors and Dynamic neural networks in Python  with strong GPU acceleration","fork":true,"url":"https://api.github.com/repos/zdevito/pytorch","forks_url":"https://api.github.com/repos/zdevito/pytorch/forks","keys_url":"https://api.github.com/repos/zdevito/pytorch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zdevito/pytorch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zdevito/pytorch/teams","hooks_url":"https://api.github.com/repos/zdevito/pytorch/hooks","issue_events_url":"https://api.github.com/repos/zdevito/pytorch/issues/events{/number}","events_url":"https://api.github.com/repos/zdevito/pytorch/events","assignees_url":"https://api.github.com/repos/zdevito/pytorch/assignees{/user}","branches_url":"https://api.github.com/repos/zdevito/pytorch/branches{/branch}","tags_url":"https://api.github.com/repos/zdevito/pytorch/tags","blobs_url":"https://api.github.com/repos/zdevito/pytorch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zdevito/pytorch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zdevito/pytorch/git/refs{/sha}","trees_url":"https://api.github.com/repos/zdevito/pytorch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zdevito/pytorch/statuses/{sha}","languages_url":"https://api.github.com/repos/zdevito/pytorch/languages","stargazers_url":"https://api.github.com/repos/zdevito/pytorch/stargazers","contributors_url":"https://api.github.com/repos/zdevito/pytorch/contributors","subscribers_url":"https://api.github.com/repos/zdevito/pytorch/subscribers","subscription_url":"https://api.github.com/repos/zdevito/pytorch/subscription","commits_url":"https://api.github.com/repos/zdevito/pytorch/commits{/sha}","git_commits_url":"https://api.github.com/repos/zdevito/pytorch/git/commits{/sha}","comments_url":"https://api.github.com/repos/zdevito/pytorch/comments{/number}","issue_comment_url":"https://api.github.com/repos/zdevito/pytorch/issues/comments{/number}","contents_url":"https://api.github.com/repos/zdevito/pytorch/contents/{+path}","compare_url":"https://api.github.com/repos/zdevito/pytorch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zdevito/pytorch/merges","archive_url":"https://api.github.com/repos/zdevito/pytorch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zdevito/pytorch/downloads","issues_url":"https://api.github.com/repos/zdevito/pytorch/issues{/number}","pulls_url":"https://api.github.com/repos/zdevito/pytorch/pulls{/number}","milestones_url":"https://api.github.com/repos/zdevito/pytorch/milestones{/number}","notifications_url":"https://api.github.com/repos/zdevito/pytorch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zdevito/pytorch/labels{/name}","releases_url":"https://api.github.com/repos/zdevito/pytorch/releases{/id}","deployments_url":"https://api.github.com/repos/zdevito/pytorch/deployments","created_at":"2017-06-02T19:00:07Z","updated_at":"2018-03-14T06:48:38Z","pushed_at":"2018-08-03T06:12:17Z","git_url":"git://github.com/zdevito/pytorch.git","ssh_url":"git@github.com:zdevito/pytorch.git","clone_url":"https://github.com/zdevito/pytorch.git","svn_url":"https://github.com/zdevito/pytorch","homepage":"http://pytorch.org","size":66167,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"pytorch:master","ref":"master","sha":"4778afb8bbcf0b45386b836913f649df3e87c6d7","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","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},"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-08-03T05:10:57Z","pushed_at":"2018-08-03T06:16:40Z","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":66378,"stargazers_count":17578,"watchers_count":17578,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4115,"mirror_url":null,"archived":false,"open_issues_count":1559,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":4115,"open_issues":1559,"watchers":17578,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/10198"},"html":{"href":"https://github.com/pytorch/pytorch/pull/10198"},"issue":{"href":"https://api.github.com/repos/pytorch/pytorch/issues/10198"},"comments":{"href":"https://api.github.com/repos/pytorch/pytorch/issues/10198/comments"},"review_comments":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/10198/comments"},"review_comment":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/10198/commits"},"statuses":{"href":"https://api.github.com/repos/pytorch/pytorch/statuses/f8bb0863e4904a894840e9ce4ea48cb7ccd056ad"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":3,"additions":250,"deletions":186,"changed_files":32}}
{"actor":{"display_login":"zdevito"}}