{"action":"created","comment":{"url":"https://api.github.com/repos/dmlc/tvm/pulls/comments/203614400","pull_request_review_id":138537253,"id":203614400,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzYxNDQwMA==","diff_hunk":"@@ -100,26 +142,28 @@ def transform_image(image):\n # get outputs\n tvm_output = m.get_output(0, tvm.nd.empty(((1, 1008)), 'float32'))\n \n-\n ######################################################################\n-# Process the output to human readable\n-# ------------------------------------\n+# Process the output\n+# ------------------\n+# Process the model output to human readable text for InceptionV1.\n predictions = tvm_output.asnumpy()\n predictions = np.squeeze(predictions)\n \n # Creates node ID --> English string lookup.\n node_lookup = nnvm.testing.tf.NodeLookup(label_lookup_path=os.path.join(\"./\", map_proto),\n                                          uid_lookup_path=os.path.join(\"./\", lable_map))\n \n+# Print top 5 predictions from TVM output.\n top_k = predictions.argsort()[-5:][::-1]\n for node_id in top_k:\n     human_string = node_lookup.id_to_string(node_id)\n     score = predictions[node_id]\n     print('%s (score = %.5f)' % (human_string, score))\n \n ######################################################################\n-# Run the same graph with tensorflow and dump output.\n-# ---------------------------------------------------\n+# Inference on tensorflow\n+# -----------------------\n+# Now lets run the same on tensorflow","path":"tutorials/nnvm/from_tensorflow.py","position":159,"original_position":159,"commit_id":"da579042449f0fb5213525bce3c0d5eed31df1e9","original_commit_id":"da579042449f0fb5213525bce3c0d5eed31df1e9","user":{"login":"masahi","id":1776403,"node_id":"MDQ6VXNlcjE3NzY0MDM=","avatar_url":"https://avatars3.githubusercontent.com/u/1776403?v=4","gravatar_id":"","url":"https://api.github.com/users/masahi","html_url":"https://github.com/masahi","followers_url":"https://api.github.com/users/masahi/followers","following_url":"https://api.github.com/users/masahi/following{/other_user}","gists_url":"https://api.github.com/users/masahi/gists{/gist_id}","starred_url":"https://api.github.com/users/masahi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masahi/subscriptions","organizations_url":"https://api.github.com/users/masahi/orgs","repos_url":"https://api.github.com/users/masahi/repos","events_url":"https://api.github.com/users/masahi/events{/privacy}","received_events_url":"https://api.github.com/users/masahi/received_events","type":"User","site_admin":false},"body":"run the corresponding model on tensorflow","created_at":"2018-07-19T06:32:16Z","updated_at":"2018-07-19T06:32:16Z","html_url":"https://github.com/dmlc/tvm/pull/1450#discussion_r203614400","pull_request_url":"https://api.github.com/repos/dmlc/tvm/pulls/1450","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/dmlc/tvm/pulls/comments/203614400"},"html":{"href":"https://github.com/dmlc/tvm/pull/1450#discussion_r203614400"},"pull_request":{"href":"https://api.github.com/repos/dmlc/tvm/pulls/1450"}}},"pull_request":{"url":"https://api.github.com/repos/dmlc/tvm/pulls/1450","id":202309287,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyMzA5Mjg3","html_url":"https://github.com/dmlc/tvm/pull/1450","diff_url":"https://github.com/dmlc/tvm/pull/1450.diff","patch_url":"https://github.com/dmlc/tvm/pull/1450.patch","issue_url":"https://api.github.com/repos/dmlc/tvm/issues/1450","number":1450,"state":"open","locked":false,"title":"Tutorial enhancement to keep it clean on docs.tvm.ai","user":{"login":"srkreddy1238","id":14215163,"node_id":"MDQ6VXNlcjE0MjE1MTYz","avatar_url":"https://avatars2.githubusercontent.com/u/14215163?v=4","gravatar_id":"","url":"https://api.github.com/users/srkreddy1238","html_url":"https://github.com/srkreddy1238","followers_url":"https://api.github.com/users/srkreddy1238/followers","following_url":"https://api.github.com/users/srkreddy1238/following{/other_user}","gists_url":"https://api.github.com/users/srkreddy1238/gists{/gist_id}","starred_url":"https://api.github.com/users/srkreddy1238/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srkreddy1238/subscriptions","organizations_url":"https://api.github.com/users/srkreddy1238/orgs","repos_url":"https://api.github.com/users/srkreddy1238/repos","events_url":"https://api.github.com/users/srkreddy1238/events{/privacy}","received_events_url":"https://api.github.com/users/srkreddy1238/received_events","type":"User","site_admin":false},"body":"Thanks for contributing to TVM!   Please refer to guideline https://docs.tvm.ai/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from others in the community.\r\n","created_at":"2018-07-18T16:22:31Z","updated_at":"2018-07-19T06:32:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"743d8d66f615ad7955c20e854fb3af316b494d5c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dmlc/tvm/pulls/1450/commits","review_comments_url":"https://api.github.com/repos/dmlc/tvm/pulls/1450/comments","review_comment_url":"https://api.github.com/repos/dmlc/tvm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dmlc/tvm/issues/1450/comments","statuses_url":"https://api.github.com/repos/dmlc/tvm/statuses/da579042449f0fb5213525bce3c0d5eed31df1e9","head":{"label":"srkreddy1238:master","ref":"master","sha":"da579042449f0fb5213525bce3c0d5eed31df1e9","user":{"login":"srkreddy1238","id":14215163,"node_id":"MDQ6VXNlcjE0MjE1MTYz","avatar_url":"https://avatars2.githubusercontent.com/u/14215163?v=4","gravatar_id":"","url":"https://api.github.com/users/srkreddy1238","html_url":"https://github.com/srkreddy1238","followers_url":"https://api.github.com/users/srkreddy1238/followers","following_url":"https://api.github.com/users/srkreddy1238/following{/other_user}","gists_url":"https://api.github.com/users/srkreddy1238/gists{/gist_id}","starred_url":"https://api.github.com/users/srkreddy1238/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srkreddy1238/subscriptions","organizations_url":"https://api.github.com/users/srkreddy1238/orgs","repos_url":"https://api.github.com/users/srkreddy1238/repos","events_url":"https://api.github.com/users/srkreddy1238/events{/privacy}","received_events_url":"https://api.github.com/users/srkreddy1238/received_events","type":"User","site_admin":false},"repo":{"id":111770470,"node_id":"MDEwOlJlcG9zaXRvcnkxMTE3NzA0NzA=","name":"tvm","full_name":"srkreddy1238/tvm","owner":{"login":"srkreddy1238","id":14215163,"node_id":"MDQ6VXNlcjE0MjE1MTYz","avatar_url":"https://avatars2.githubusercontent.com/u/14215163?v=4","gravatar_id":"","url":"https://api.github.com/users/srkreddy1238","html_url":"https://github.com/srkreddy1238","followers_url":"https://api.github.com/users/srkreddy1238/followers","following_url":"https://api.github.com/users/srkreddy1238/following{/other_user}","gists_url":"https://api.github.com/users/srkreddy1238/gists{/gist_id}","starred_url":"https://api.github.com/users/srkreddy1238/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srkreddy1238/subscriptions","organizations_url":"https://api.github.com/users/srkreddy1238/orgs","repos_url":"https://api.github.com/users/srkreddy1238/repos","events_url":"https://api.github.com/users/srkreddy1238/events{/privacy}","received_events_url":"https://api.github.com/users/srkreddy1238/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/srkreddy1238/tvm","description":"End to end Tensor IR/DSL stack for deploying deep learning workloads to hardwares","fork":true,"url":"https://api.github.com/repos/srkreddy1238/tvm","forks_url":"https://api.github.com/repos/srkreddy1238/tvm/forks","keys_url":"https://api.github.com/repos/srkreddy1238/tvm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/srkreddy1238/tvm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/srkreddy1238/tvm/teams","hooks_url":"https://api.github.com/repos/srkreddy1238/tvm/hooks","issue_events_url":"https://api.github.com/repos/srkreddy1238/tvm/issues/events{/number}","events_url":"https://api.github.com/repos/srkreddy1238/tvm/events","assignees_url":"https://api.github.com/repos/srkreddy1238/tvm/assignees{/user}","branches_url":"https://api.github.com/repos/srkreddy1238/tvm/branches{/branch}","tags_url":"https://api.github.com/repos/srkreddy1238/tvm/tags","blobs_url":"https://api.github.com/repos/srkreddy1238/tvm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/srkreddy1238/tvm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/srkreddy1238/tvm/git/refs{/sha}","trees_url":"https://api.github.com/repos/srkreddy1238/tvm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/srkreddy1238/tvm/statuses/{sha}","languages_url":"https://api.github.com/repos/srkreddy1238/tvm/languages","stargazers_url":"https://api.github.com/repos/srkreddy1238/tvm/stargazers","contributors_url":"https://api.github.com/repos/srkreddy1238/tvm/contributors","subscribers_url":"https://api.github.com/repos/srkreddy1238/tvm/subscribers","subscription_url":"https://api.github.com/repos/srkreddy1238/tvm/subscription","commits_url":"https://api.github.com/repos/srkreddy1238/tvm/commits{/sha}","git_commits_url":"https://api.github.com/repos/srkreddy1238/tvm/git/commits{/sha}","comments_url":"https://api.github.com/repos/srkreddy1238/tvm/comments{/number}","issue_comment_url":"https://api.github.com/repos/srkreddy1238/tvm/issues/comments{/number}","contents_url":"https://api.github.com/repos/srkreddy1238/tvm/contents/{+path}","compare_url":"https://api.github.com/repos/srkreddy1238/tvm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/srkreddy1238/tvm/merges","archive_url":"https://api.github.com/repos/srkreddy1238/tvm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/srkreddy1238/tvm/downloads","issues_url":"https://api.github.com/repos/srkreddy1238/tvm/issues{/number}","pulls_url":"https://api.github.com/repos/srkreddy1238/tvm/pulls{/number}","milestones_url":"https://api.github.com/repos/srkreddy1238/tvm/milestones{/number}","notifications_url":"https://api.github.com/repos/srkreddy1238/tvm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/srkreddy1238/tvm/labels{/name}","releases_url":"https://api.github.com/repos/srkreddy1238/tvm/releases{/id}","deployments_url":"https://api.github.com/repos/srkreddy1238/tvm/deployments","created_at":"2017-11-23T06:12:16Z","updated_at":"2018-07-18T16:21:36Z","pushed_at":"2018-07-18T16:21:34Z","git_url":"git://github.com/srkreddy1238/tvm.git","ssh_url":"git@github.com:srkreddy1238/tvm.git","clone_url":"https://github.com/srkreddy1238/tvm.git","svn_url":"https://github.com/srkreddy1238/tvm","homepage":"","size":6189,"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":"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":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dmlc:master","ref":"master","sha":"4a464c65bf2566cb1f5b6a240dcb598dd4c4ef9e","user":{"login":"dmlc","id":11508361,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNTA4MzYx","avatar_url":"https://avatars2.githubusercontent.com/u/11508361?v=4","gravatar_id":"","url":"https://api.github.com/users/dmlc","html_url":"https://github.com/dmlc","followers_url":"https://api.github.com/users/dmlc/followers","following_url":"https://api.github.com/users/dmlc/following{/other_user}","gists_url":"https://api.github.com/users/dmlc/gists{/gist_id}","starred_url":"https://api.github.com/users/dmlc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmlc/subscriptions","organizations_url":"https://api.github.com/users/dmlc/orgs","repos_url":"https://api.github.com/users/dmlc/repos","events_url":"https://api.github.com/users/dmlc/events{/privacy}","received_events_url":"https://api.github.com/users/dmlc/received_events","type":"Organization","site_admin":false},"repo":{"id":70746484,"node_id":"MDEwOlJlcG9zaXRvcnk3MDc0NjQ4NA==","name":"tvm","full_name":"dmlc/tvm","owner":{"login":"dmlc","id":11508361,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNTA4MzYx","avatar_url":"https://avatars2.githubusercontent.com/u/11508361?v=4","gravatar_id":"","url":"https://api.github.com/users/dmlc","html_url":"https://github.com/dmlc","followers_url":"https://api.github.com/users/dmlc/followers","following_url":"https://api.github.com/users/dmlc/following{/other_user}","gists_url":"https://api.github.com/users/dmlc/gists{/gist_id}","starred_url":"https://api.github.com/users/dmlc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmlc/subscriptions","organizations_url":"https://api.github.com/users/dmlc/orgs","repos_url":"https://api.github.com/users/dmlc/repos","events_url":"https://api.github.com/users/dmlc/events{/privacy}","received_events_url":"https://api.github.com/users/dmlc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dmlc/tvm","description":"Open deep learning compiler stack for cpu, gpu and specialized accelerators","fork":false,"url":"https://api.github.com/repos/dmlc/tvm","forks_url":"https://api.github.com/repos/dmlc/tvm/forks","keys_url":"https://api.github.com/repos/dmlc/tvm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmlc/tvm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmlc/tvm/teams","hooks_url":"https://api.github.com/repos/dmlc/tvm/hooks","issue_events_url":"https://api.github.com/repos/dmlc/tvm/issues/events{/number}","events_url":"https://api.github.com/repos/dmlc/tvm/events","assignees_url":"https://api.github.com/repos/dmlc/tvm/assignees{/user}","branches_url":"https://api.github.com/repos/dmlc/tvm/branches{/branch}","tags_url":"https://api.github.com/repos/dmlc/tvm/tags","blobs_url":"https://api.github.com/repos/dmlc/tvm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmlc/tvm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmlc/tvm/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmlc/tvm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmlc/tvm/statuses/{sha}","languages_url":"https://api.github.com/repos/dmlc/tvm/languages","stargazers_url":"https://api.github.com/repos/dmlc/tvm/stargazers","contributors_url":"https://api.github.com/repos/dmlc/tvm/contributors","subscribers_url":"https://api.github.com/repos/dmlc/tvm/subscribers","subscription_url":"https://api.github.com/repos/dmlc/tvm/subscription","commits_url":"https://api.github.com/repos/dmlc/tvm/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmlc/tvm/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmlc/tvm/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmlc/tvm/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmlc/tvm/contents/{+path}","compare_url":"https://api.github.com/repos/dmlc/tvm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmlc/tvm/merges","archive_url":"https://api.github.com/repos/dmlc/tvm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmlc/tvm/downloads","issues_url":"https://api.github.com/repos/dmlc/tvm/issues{/number}","pulls_url":"https://api.github.com/repos/dmlc/tvm/pulls{/number}","milestones_url":"https://api.github.com/repos/dmlc/tvm/milestones{/number}","notifications_url":"https://api.github.com/repos/dmlc/tvm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmlc/tvm/labels{/name}","releases_url":"https://api.github.com/repos/dmlc/tvm/releases{/id}","deployments_url":"https://api.github.com/repos/dmlc/tvm/deployments","created_at":"2016-10-12T22:20:28Z","updated_at":"2018-07-19T05:29:48Z","pushed_at":"2018-07-19T05:34:26Z","git_url":"git://github.com/dmlc/tvm.git","ssh_url":"git@github.com:dmlc/tvm.git","clone_url":"https://github.com/dmlc/tvm.git","svn_url":"https://github.com/dmlc/tvm","homepage":"https://tvm.ai","size":6137,"stargazers_count":1715,"watchers_count":1715,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":379,"mirror_url":null,"archived":false,"open_issues_count":36,"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":379,"open_issues":36,"watchers":1715,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dmlc/tvm/pulls/1450"},"html":{"href":"https://github.com/dmlc/tvm/pull/1450"},"issue":{"href":"https://api.github.com/repos/dmlc/tvm/issues/1450"},"comments":{"href":"https://api.github.com/repos/dmlc/tvm/issues/1450/comments"},"review_comments":{"href":"https://api.github.com/repos/dmlc/tvm/pulls/1450/comments"},"review_comment":{"href":"https://api.github.com/repos/dmlc/tvm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dmlc/tvm/pulls/1450/commits"},"statuses":{"href":"https://api.github.com/repos/dmlc/tvm/statuses/da579042449f0fb5213525bce3c0d5eed31df1e9"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"masahi"}}