{"action":"created","comment":{"url":"https://api.github.com/repos/uTensor/utensor_cgen/pulls/comments/194289057","pull_request_review_id":127430918,"id":194289057,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDI4OTA1Nw==","diff_hunk":"@@ -13,161 +14,218 @@ def snippet(self):\n \n \n class _AddOperator(_Operator):\n-  def __init__(self, op_info, ref_counts, to_eval):\n+  def __init__(self, op_info):\n     _Operator.__init__(self)\n-    inputs = [tensor_info.name for tensor_info in op_info.input_tensor]\n-    output = op_info.output_tensor[0].name\n-    tf_dtype = op_info.input_tensor[0].dtype\n-    ref_count = ref_counts[0]\n+    inputs = [tensor_info.name for tensor_info in op_info.input_tensors]\n+    output = op_info.output_tensors[0].name\n+    tf_dtype = op_info.input_tensors[0].dtype\n+    parser = NamescopedKWArgsParser(RefCntOptimizer.KWARGS_NAMESCOPE, op_info.op_attr)","path":"utensor_cgen/operators.py","position":23,"original_position":23,"commit_id":"8976973445263c6819bb37d10a7c9b35c78b7c79","original_commit_id":"8976973445263c6819bb37d10a7c9b35c78b7c79","user":{"login":"dboyliao","id":6830390,"node_id":"MDQ6VXNlcjY4MzAzOTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6830390?v=4","gravatar_id":"","url":"https://api.github.com/users/dboyliao","html_url":"https://github.com/dboyliao","followers_url":"https://api.github.com/users/dboyliao/followers","following_url":"https://api.github.com/users/dboyliao/following{/other_user}","gists_url":"https://api.github.com/users/dboyliao/gists{/gist_id}","starred_url":"https://api.github.com/users/dboyliao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dboyliao/subscriptions","organizations_url":"https://api.github.com/users/dboyliao/orgs","repos_url":"https://api.github.com/users/dboyliao/repos","events_url":"https://api.github.com/users/dboyliao/events{/privacy}","received_events_url":"https://api.github.com/users/dboyliao/received_events","type":"User","site_admin":false},"body":"Yes, I agree.\r\nBut I don't have good idea for how to better refactor cpp code generation process here.","created_at":"2018-06-11T04:08:09Z","updated_at":"2018-06-11T04:08:09Z","html_url":"https://github.com/uTensor/utensor_cgen/pull/31#discussion_r194289057","pull_request_url":"https://api.github.com/repos/uTensor/utensor_cgen/pulls/31","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/uTensor/utensor_cgen/pulls/comments/194289057"},"html":{"href":"https://github.com/uTensor/utensor_cgen/pull/31#discussion_r194289057"},"pull_request":{"href":"https://api.github.com/repos/uTensor/utensor_cgen/pulls/31"}},"in_reply_to_id":194282710},"pull_request":{"url":"https://api.github.com/repos/uTensor/utensor_cgen/pulls/31","id":193812753,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzODEyNzUz","html_url":"https://github.com/uTensor/utensor_cgen/pull/31","diff_url":"https://github.com/uTensor/utensor_cgen/pull/31.diff","patch_url":"https://github.com/uTensor/utensor_cgen/pull/31.patch","issue_url":"https://api.github.com/repos/uTensor/utensor_cgen/issues/31","number":31,"state":"open","locked":false,"title":"Refactor","user":{"login":"dboyliao","id":6830390,"node_id":"MDQ6VXNlcjY4MzAzOTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6830390?v=4","gravatar_id":"","url":"https://api.github.com/users/dboyliao","html_url":"https://github.com/dboyliao","followers_url":"https://api.github.com/users/dboyliao/followers","following_url":"https://api.github.com/users/dboyliao/following{/other_user}","gists_url":"https://api.github.com/users/dboyliao/gists{/gist_id}","starred_url":"https://api.github.com/users/dboyliao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dboyliao/subscriptions","organizations_url":"https://api.github.com/users/dboyliao/orgs","repos_url":"https://api.github.com/users/dboyliao/repos","events_url":"https://api.github.com/users/dboyliao/events{/privacy}","received_events_url":"https://api.github.com/users/dboyliao/received_events","type":"User","site_admin":false},"body":"IR based code generator","created_at":"2018-06-10T07:20:44Z","updated_at":"2018-06-11T04:08:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29cef485c7c62b060db7d263bebf3d6db1b85e8e","assignee":null,"assignees":[],"requested_reviewers":[{"login":"neil-tan","id":15310684,"node_id":"MDQ6VXNlcjE1MzEwNjg0","avatar_url":"https://avatars2.githubusercontent.com/u/15310684?v=4","gravatar_id":"","url":"https://api.github.com/users/neil-tan","html_url":"https://github.com/neil-tan","followers_url":"https://api.github.com/users/neil-tan/followers","following_url":"https://api.github.com/users/neil-tan/following{/other_user}","gists_url":"https://api.github.com/users/neil-tan/gists{/gist_id}","starred_url":"https://api.github.com/users/neil-tan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neil-tan/subscriptions","organizations_url":"https://api.github.com/users/neil-tan/orgs","repos_url":"https://api.github.com/users/neil-tan/repos","events_url":"https://api.github.com/users/neil-tan/events{/privacy}","received_events_url":"https://api.github.com/users/neil-tan/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/uTensor/utensor_cgen/pulls/31/commits","review_comments_url":"https://api.github.com/repos/uTensor/utensor_cgen/pulls/31/comments","review_comment_url":"https://api.github.com/repos/uTensor/utensor_cgen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uTensor/utensor_cgen/issues/31/comments","statuses_url":"https://api.github.com/repos/uTensor/utensor_cgen/statuses/8976973445263c6819bb37d10a7c9b35c78b7c79","head":{"label":"uTensor:refactor","ref":"refactor","sha":"8976973445263c6819bb37d10a7c9b35c78b7c79","user":{"login":"uTensor","id":34933555,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0OTMzNTU1","avatar_url":"https://avatars2.githubusercontent.com/u/34933555?v=4","gravatar_id":"","url":"https://api.github.com/users/uTensor","html_url":"https://github.com/uTensor","followers_url":"https://api.github.com/users/uTensor/followers","following_url":"https://api.github.com/users/uTensor/following{/other_user}","gists_url":"https://api.github.com/users/uTensor/gists{/gist_id}","starred_url":"https://api.github.com/users/uTensor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uTensor/subscriptions","organizations_url":"https://api.github.com/users/uTensor/orgs","repos_url":"https://api.github.com/users/uTensor/repos","events_url":"https://api.github.com/users/uTensor/events{/privacy}","received_events_url":"https://api.github.com/users/uTensor/received_events","type":"Organization","site_admin":false},"repo":{"id":112056490,"node_id":"MDEwOlJlcG9zaXRvcnkxMTIwNTY0OTA=","name":"utensor_cgen","full_name":"uTensor/utensor_cgen","owner":{"login":"uTensor","id":34933555,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0OTMzNTU1","avatar_url":"https://avatars2.githubusercontent.com/u/34933555?v=4","gravatar_id":"","url":"https://api.github.com/users/uTensor","html_url":"https://github.com/uTensor","followers_url":"https://api.github.com/users/uTensor/followers","following_url":"https://api.github.com/users/uTensor/following{/other_user}","gists_url":"https://api.github.com/users/uTensor/gists{/gist_id}","starred_url":"https://api.github.com/users/uTensor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uTensor/subscriptions","organizations_url":"https://api.github.com/users/uTensor/orgs","repos_url":"https://api.github.com/users/uTensor/repos","events_url":"https://api.github.com/users/uTensor/events{/privacy}","received_events_url":"https://api.github.com/users/uTensor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uTensor/utensor_cgen","description":"C++ code generator for uTensor","fork":false,"url":"https://api.github.com/repos/uTensor/utensor_cgen","forks_url":"https://api.github.com/repos/uTensor/utensor_cgen/forks","keys_url":"https://api.github.com/repos/uTensor/utensor_cgen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uTensor/utensor_cgen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uTensor/utensor_cgen/teams","hooks_url":"https://api.github.com/repos/uTensor/utensor_cgen/hooks","issue_events_url":"https://api.github.com/repos/uTensor/utensor_cgen/issues/events{/number}","events_url":"https://api.github.com/repos/uTensor/utensor_cgen/events","assignees_url":"https://api.github.com/repos/uTensor/utensor_cgen/assignees{/user}","branches_url":"https://api.github.com/repos/uTensor/utensor_cgen/branches{/branch}","tags_url":"https://api.github.com/repos/uTensor/utensor_cgen/tags","blobs_url":"https://api.github.com/repos/uTensor/utensor_cgen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uTensor/utensor_cgen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uTensor/utensor_cgen/git/refs{/sha}","trees_url":"https://api.github.com/repos/uTensor/utensor_cgen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uTensor/utensor_cgen/statuses/{sha}","languages_url":"https://api.github.com/repos/uTensor/utensor_cgen/languages","stargazers_url":"https://api.github.com/repos/uTensor/utensor_cgen/stargazers","contributors_url":"https://api.github.com/repos/uTensor/utensor_cgen/contributors","subscribers_url":"https://api.github.com/repos/uTensor/utensor_cgen/subscribers","subscription_url":"https://api.github.com/repos/uTensor/utensor_cgen/subscription","commits_url":"https://api.github.com/repos/uTensor/utensor_cgen/commits{/sha}","git_commits_url":"https://api.github.com/repos/uTensor/utensor_cgen/git/commits{/sha}","comments_url":"https://api.github.com/repos/uTensor/utensor_cgen/comments{/number}","issue_comment_url":"https://api.github.com/repos/uTensor/utensor_cgen/issues/comments{/number}","contents_url":"https://api.github.com/repos/uTensor/utensor_cgen/contents/{+path}","compare_url":"https://api.github.com/repos/uTensor/utensor_cgen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uTensor/utensor_cgen/merges","archive_url":"https://api.github.com/repos/uTensor/utensor_cgen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uTensor/utensor_cgen/downloads","issues_url":"https://api.github.com/repos/uTensor/utensor_cgen/issues{/number}","pulls_url":"https://api.github.com/repos/uTensor/utensor_cgen/pulls{/number}","milestones_url":"https://api.github.com/repos/uTensor/utensor_cgen/milestones{/number}","notifications_url":"https://api.github.com/repos/uTensor/utensor_cgen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uTensor/utensor_cgen/labels{/name}","releases_url":"https://api.github.com/repos/uTensor/utensor_cgen/releases{/id}","deployments_url":"https://api.github.com/repos/uTensor/utensor_cgen/deployments","created_at":"2017-11-26T04:48:08Z","updated_at":"2018-06-10T08:43:42Z","pushed_at":"2018-06-10T07:54:12Z","git_url":"git://github.com/uTensor/utensor_cgen.git","ssh_url":"git@github.com:uTensor/utensor_cgen.git","clone_url":"https://github.com/uTensor/utensor_cgen.git","svn_url":"https://github.com/uTensor/utensor_cgen","homepage":"https://github.com/uTensor/uTensor","size":2418,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":4,"open_issues":6,"watchers":6,"default_branch":"master"}},"base":{"label":"uTensor:develop","ref":"develop","sha":"083e85f82d9048030e34b627934142b627d108f8","user":{"login":"uTensor","id":34933555,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0OTMzNTU1","avatar_url":"https://avatars2.githubusercontent.com/u/34933555?v=4","gravatar_id":"","url":"https://api.github.com/users/uTensor","html_url":"https://github.com/uTensor","followers_url":"https://api.github.com/users/uTensor/followers","following_url":"https://api.github.com/users/uTensor/following{/other_user}","gists_url":"https://api.github.com/users/uTensor/gists{/gist_id}","starred_url":"https://api.github.com/users/uTensor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uTensor/subscriptions","organizations_url":"https://api.github.com/users/uTensor/orgs","repos_url":"https://api.github.com/users/uTensor/repos","events_url":"https://api.github.com/users/uTensor/events{/privacy}","received_events_url":"https://api.github.com/users/uTensor/received_events","type":"Organization","site_admin":false},"repo":{"id":112056490,"node_id":"MDEwOlJlcG9zaXRvcnkxMTIwNTY0OTA=","name":"utensor_cgen","full_name":"uTensor/utensor_cgen","owner":{"login":"uTensor","id":34933555,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0OTMzNTU1","avatar_url":"https://avatars2.githubusercontent.com/u/34933555?v=4","gravatar_id":"","url":"https://api.github.com/users/uTensor","html_url":"https://github.com/uTensor","followers_url":"https://api.github.com/users/uTensor/followers","following_url":"https://api.github.com/users/uTensor/following{/other_user}","gists_url":"https://api.github.com/users/uTensor/gists{/gist_id}","starred_url":"https://api.github.com/users/uTensor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uTensor/subscriptions","organizations_url":"https://api.github.com/users/uTensor/orgs","repos_url":"https://api.github.com/users/uTensor/repos","events_url":"https://api.github.com/users/uTensor/events{/privacy}","received_events_url":"https://api.github.com/users/uTensor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uTensor/utensor_cgen","description":"C++ code generator for uTensor","fork":false,"url":"https://api.github.com/repos/uTensor/utensor_cgen","forks_url":"https://api.github.com/repos/uTensor/utensor_cgen/forks","keys_url":"https://api.github.com/repos/uTensor/utensor_cgen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uTensor/utensor_cgen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uTensor/utensor_cgen/teams","hooks_url":"https://api.github.com/repos/uTensor/utensor_cgen/hooks","issue_events_url":"https://api.github.com/repos/uTensor/utensor_cgen/issues/events{/number}","events_url":"https://api.github.com/repos/uTensor/utensor_cgen/events","assignees_url":"https://api.github.com/repos/uTensor/utensor_cgen/assignees{/user}","branches_url":"https://api.github.com/repos/uTensor/utensor_cgen/branches{/branch}","tags_url":"https://api.github.com/repos/uTensor/utensor_cgen/tags","blobs_url":"https://api.github.com/repos/uTensor/utensor_cgen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uTensor/utensor_cgen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uTensor/utensor_cgen/git/refs{/sha}","trees_url":"https://api.github.com/repos/uTensor/utensor_cgen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uTensor/utensor_cgen/statuses/{sha}","languages_url":"https://api.github.com/repos/uTensor/utensor_cgen/languages","stargazers_url":"https://api.github.com/repos/uTensor/utensor_cgen/stargazers","contributors_url":"https://api.github.com/repos/uTensor/utensor_cgen/contributors","subscribers_url":"https://api.github.com/repos/uTensor/utensor_cgen/subscribers","subscription_url":"https://api.github.com/repos/uTensor/utensor_cgen/subscription","commits_url":"https://api.github.com/repos/uTensor/utensor_cgen/commits{/sha}","git_commits_url":"https://api.github.com/repos/uTensor/utensor_cgen/git/commits{/sha}","comments_url":"https://api.github.com/repos/uTensor/utensor_cgen/comments{/number}","issue_comment_url":"https://api.github.com/repos/uTensor/utensor_cgen/issues/comments{/number}","contents_url":"https://api.github.com/repos/uTensor/utensor_cgen/contents/{+path}","compare_url":"https://api.github.com/repos/uTensor/utensor_cgen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uTensor/utensor_cgen/merges","archive_url":"https://api.github.com/repos/uTensor/utensor_cgen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uTensor/utensor_cgen/downloads","issues_url":"https://api.github.com/repos/uTensor/utensor_cgen/issues{/number}","pulls_url":"https://api.github.com/repos/uTensor/utensor_cgen/pulls{/number}","milestones_url":"https://api.github.com/repos/uTensor/utensor_cgen/milestones{/number}","notifications_url":"https://api.github.com/repos/uTensor/utensor_cgen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uTensor/utensor_cgen/labels{/name}","releases_url":"https://api.github.com/repos/uTensor/utensor_cgen/releases{/id}","deployments_url":"https://api.github.com/repos/uTensor/utensor_cgen/deployments","created_at":"2017-11-26T04:48:08Z","updated_at":"2018-06-10T08:43:42Z","pushed_at":"2018-06-10T07:54:12Z","git_url":"git://github.com/uTensor/utensor_cgen.git","ssh_url":"git@github.com:uTensor/utensor_cgen.git","clone_url":"https://github.com/uTensor/utensor_cgen.git","svn_url":"https://github.com/uTensor/utensor_cgen","homepage":"https://github.com/uTensor/uTensor","size":2418,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":4,"open_issues":6,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uTensor/utensor_cgen/pulls/31"},"html":{"href":"https://github.com/uTensor/utensor_cgen/pull/31"},"issue":{"href":"https://api.github.com/repos/uTensor/utensor_cgen/issues/31"},"comments":{"href":"https://api.github.com/repos/uTensor/utensor_cgen/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/uTensor/utensor_cgen/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/uTensor/utensor_cgen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uTensor/utensor_cgen/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/uTensor/utensor_cgen/statuses/8976973445263c6819bb37d10a7c9b35c78b7c79"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"dboyliao"}}