{"action":"created","comment":{"url":"https://api.github.com/repos/pytorch/pytorch/pulls/comments/204113008","pull_request_review_id":139142230,"id":204113008,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNDExMzAwOA==","diff_hunk":"@@ -3,16 +3,35 @@\n from __future__ import print_function\n from __future__ import unicode_literals\n \n+import json\n import numpy as np\n+import os\n+import time\n import unittest\n \n import onnx\n import onnx.defs\n+from onnx.backend.base import namedtupledict\n from onnx.helper import make_node, make_graph, make_tensor, make_tensor_value_info, make_model\n from caffe2.proto import caffe2_pb2\n from caffe2.python import core, workspace\n+from caffe2.python.models.download import downloadFromURLToFile, getURLFromName, deleteDirectory\n+from caffe2.python.onnx.onnxifi import onnxifi_caffe2_net\n from caffe2.python.onnx.tests.test_utils import TestCase\n \n+def _print_net(net):","path":"caffe2/python/onnx/test_onnxifi.py","position":20,"original_position":20,"commit_id":"ae24e446fcdf16ced31089f352d5fcdd4c7c4bb6","original_commit_id":"60b4564185daf7f45c20956e3ecaaa020bba9207","user":{"login":"yinghai","id":1100089,"node_id":"MDQ6VXNlcjExMDAwODk=","avatar_url":"https://avatars1.githubusercontent.com/u/1100089?v=4","gravatar_id":"","url":"https://api.github.com/users/yinghai","html_url":"https://github.com/yinghai","followers_url":"https://api.github.com/users/yinghai/followers","following_url":"https://api.github.com/users/yinghai/following{/other_user}","gists_url":"https://api.github.com/users/yinghai/gists{/gist_id}","starred_url":"https://api.github.com/users/yinghai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yinghai/subscriptions","organizations_url":"https://api.github.com/users/yinghai/orgs","repos_url":"https://api.github.com/users/yinghai/repos","events_url":"https://api.github.com/users/yinghai/events{/privacy}","received_events_url":"https://api.github.com/users/yinghai/received_events","type":"User","site_admin":false},"body":"Yes. Just for debugging purpose. ","created_at":"2018-07-20T17:19:35Z","updated_at":"2018-07-20T17:19:35Z","html_url":"https://github.com/pytorch/pytorch/pull/9569#discussion_r204113008","pull_request_url":"https://api.github.com/repos/pytorch/pytorch/pulls/9569","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/comments/204113008"},"html":{"href":"https://github.com/pytorch/pytorch/pull/9569#discussion_r204113008"},"pull_request":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/9569"}},"in_reply_to_id":203822729},"pull_request":{"url":"https://api.github.com/repos/pytorch/pytorch/pulls/9569","id":202395133,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyMzk1MTMz","html_url":"https://github.com/pytorch/pytorch/pull/9569","diff_url":"https://github.com/pytorch/pytorch/pull/9569.diff","patch_url":"https://github.com/pytorch/pytorch/pull/9569.patch","issue_url":"https://api.github.com/repos/pytorch/pytorch/issues/9569","number":9569,"state":"open","locked":false,"title":"ONNXIFI transform","user":{"login":"yinghai","id":1100089,"node_id":"MDQ6VXNlcjExMDAwODk=","avatar_url":"https://avatars1.githubusercontent.com/u/1100089?v=4","gravatar_id":"","url":"https://api.github.com/users/yinghai","html_url":"https://github.com/yinghai","followers_url":"https://api.github.com/users/yinghai/followers","following_url":"https://api.github.com/users/yinghai/following{/other_user}","gists_url":"https://api.github.com/users/yinghai/gists{/gist_id}","starred_url":"https://api.github.com/users/yinghai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yinghai/subscriptions","organizations_url":"https://api.github.com/users/yinghai/orgs","repos_url":"https://api.github.com/users/yinghai/repos","events_url":"https://api.github.com/users/yinghai/events{/privacy}","received_events_url":"https://api.github.com/users/yinghai/received_events","type":"User","site_admin":false},"body":"Cut-off runnable subgraph and off-load to ONNXIFI backend\r\n\r\nTest Plan:\r\n- Build libtrt_onnxify.so from recent master\r\n- ln -s /home/yinghai/onnx-tensorrt/build/libtrt_onnxify.so ~/lib/libonnxifi.so\r\n- export LD_LIBRARY_PATH=/home/yinghai/lib:$LD_LIBRARY_PATH\r\n- Patch this PR and build Pytorch\r\n- pytest -s test_onnxifi.py","created_at":"2018-07-18T22:14:21Z","updated_at":"2018-07-20T17:19:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cc4ee0f576d50c3e007db8fa414f45f6d212d5ce","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":890282107,"node_id":"MDU6TGFiZWw4OTAyODIxMDc=","url":"https://api.github.com/repos/pytorch/pytorch/labels/caffe2","name":"caffe2","color":"210aa8","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/pytorch/pytorch/pulls/9569/commits","review_comments_url":"https://api.github.com/repos/pytorch/pytorch/pulls/9569/comments","review_comment_url":"https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/9569/comments","statuses_url":"https://api.github.com/repos/pytorch/pytorch/statuses/ae24e446fcdf16ced31089f352d5fcdd4c7c4bb6","head":{"label":"yinghai:onnxifi_transform","ref":"onnxifi_transform","sha":"ae24e446fcdf16ced31089f352d5fcdd4c7c4bb6","user":{"login":"yinghai","id":1100089,"node_id":"MDQ6VXNlcjExMDAwODk=","avatar_url":"https://avatars1.githubusercontent.com/u/1100089?v=4","gravatar_id":"","url":"https://api.github.com/users/yinghai","html_url":"https://github.com/yinghai","followers_url":"https://api.github.com/users/yinghai/followers","following_url":"https://api.github.com/users/yinghai/following{/other_user}","gists_url":"https://api.github.com/users/yinghai/gists{/gist_id}","starred_url":"https://api.github.com/users/yinghai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yinghai/subscriptions","organizations_url":"https://api.github.com/users/yinghai/orgs","repos_url":"https://api.github.com/users/yinghai/repos","events_url":"https://api.github.com/users/yinghai/events{/privacy}","received_events_url":"https://api.github.com/users/yinghai/received_events","type":"User","site_admin":false},"repo":{"id":117278939,"node_id":"MDEwOlJlcG9zaXRvcnkxMTcyNzg5Mzk=","name":"pytorch","full_name":"yinghai/pytorch","owner":{"login":"yinghai","id":1100089,"node_id":"MDQ6VXNlcjExMDAwODk=","avatar_url":"https://avatars1.githubusercontent.com/u/1100089?v=4","gravatar_id":"","url":"https://api.github.com/users/yinghai","html_url":"https://github.com/yinghai","followers_url":"https://api.github.com/users/yinghai/followers","following_url":"https://api.github.com/users/yinghai/following{/other_user}","gists_url":"https://api.github.com/users/yinghai/gists{/gist_id}","starred_url":"https://api.github.com/users/yinghai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yinghai/subscriptions","organizations_url":"https://api.github.com/users/yinghai/orgs","repos_url":"https://api.github.com/users/yinghai/repos","events_url":"https://api.github.com/users/yinghai/events{/privacy}","received_events_url":"https://api.github.com/users/yinghai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yinghai/pytorch","description":"Tensors and Dynamic neural networks in Python  with strong GPU acceleration","fork":true,"url":"https://api.github.com/repos/yinghai/pytorch","forks_url":"https://api.github.com/repos/yinghai/pytorch/forks","keys_url":"https://api.github.com/repos/yinghai/pytorch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yinghai/pytorch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yinghai/pytorch/teams","hooks_url":"https://api.github.com/repos/yinghai/pytorch/hooks","issue_events_url":"https://api.github.com/repos/yinghai/pytorch/issues/events{/number}","events_url":"https://api.github.com/repos/yinghai/pytorch/events","assignees_url":"https://api.github.com/repos/yinghai/pytorch/assignees{/user}","branches_url":"https://api.github.com/repos/yinghai/pytorch/branches{/branch}","tags_url":"https://api.github.com/repos/yinghai/pytorch/tags","blobs_url":"https://api.github.com/repos/yinghai/pytorch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yinghai/pytorch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yinghai/pytorch/git/refs{/sha}","trees_url":"https://api.github.com/repos/yinghai/pytorch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yinghai/pytorch/statuses/{sha}","languages_url":"https://api.github.com/repos/yinghai/pytorch/languages","stargazers_url":"https://api.github.com/repos/yinghai/pytorch/stargazers","contributors_url":"https://api.github.com/repos/yinghai/pytorch/contributors","subscribers_url":"https://api.github.com/repos/yinghai/pytorch/subscribers","subscription_url":"https://api.github.com/repos/yinghai/pytorch/subscription","commits_url":"https://api.github.com/repos/yinghai/pytorch/commits{/sha}","git_commits_url":"https://api.github.com/repos/yinghai/pytorch/git/commits{/sha}","comments_url":"https://api.github.com/repos/yinghai/pytorch/comments{/number}","issue_comment_url":"https://api.github.com/repos/yinghai/pytorch/issues/comments{/number}","contents_url":"https://api.github.com/repos/yinghai/pytorch/contents/{+path}","compare_url":"https://api.github.com/repos/yinghai/pytorch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yinghai/pytorch/merges","archive_url":"https://api.github.com/repos/yinghai/pytorch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yinghai/pytorch/downloads","issues_url":"https://api.github.com/repos/yinghai/pytorch/issues{/number}","pulls_url":"https://api.github.com/repos/yinghai/pytorch/pulls{/number}","milestones_url":"https://api.github.com/repos/yinghai/pytorch/milestones{/number}","notifications_url":"https://api.github.com/repos/yinghai/pytorch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yinghai/pytorch/labels{/name}","releases_url":"https://api.github.com/repos/yinghai/pytorch/releases{/id}","deployments_url":"https://api.github.com/repos/yinghai/pytorch/deployments","created_at":"2018-01-12T19:15:32Z","updated_at":"2018-07-11T05:53:32Z","pushed_at":"2018-07-20T07:24:08Z","git_url":"git://github.com/yinghai/pytorch.git","ssh_url":"git@github.com:yinghai/pytorch.git","clone_url":"https://github.com/yinghai/pytorch.git","svn_url":"https://github.com/yinghai/pytorch","homepage":"http://pytorch.org","size":63429,"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":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pytorch:master","ref":"master","sha":"aa7af94656a9361224e6d24f9ca922bf5b3f5a67","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-07-20T16:55:42Z","pushed_at":"2018-07-20T17:18:44Z","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":64041,"stargazers_count":17225,"watchers_count":17225,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4018,"mirror_url":null,"archived":false,"open_issues_count":1469,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":4018,"open_issues":1469,"watchers":17225,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/9569"},"html":{"href":"https://github.com/pytorch/pytorch/pull/9569"},"issue":{"href":"https://api.github.com/repos/pytorch/pytorch/issues/9569"},"comments":{"href":"https://api.github.com/repos/pytorch/pytorch/issues/9569/comments"},"review_comments":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/9569/comments"},"review_comment":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pytorch/pytorch/pulls/9569/commits"},"statuses":{"href":"https://api.github.com/repos/pytorch/pytorch/statuses/ae24e446fcdf16ced31089f352d5fcdd4c7c4bb6"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"yinghai"}}