{"action":"created","comment":{"url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/pulls/comments/197432750","pull_request_review_id":131177485,"id":197432750,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NzQzMjc1MA==","diff_hunk":"@@ -324,3 +324,34 @@ def softsign(x):\n     expected = softsign(data)\n     ng_results = run_node(node, [data])\n     assert np.allclose(ng_results, [expected])\n+\n+\n+def test_identity():\n+    from onnx.helper import make_node, make_graph, make_tensor_value_info, make_model\n+    from ngraph_onnx.onnx_importer.importer import import_onnx_model\n+    from tests.utils import get_runtime\n+\n+    np.random.seed(133391)\n+    shape = [2, 4]\n+    input_data = np.random.randn(*shape).astype(np.float32)\n+\n+    identity_node = make_node('Identity', inputs=['x'], outputs=['y'])\n+    ng_results = run_node(identity_node, [input_data])\n+    assert np.array_equal(ng_results, [input_data])\n+\n+    node1 = make_node('Add', inputs=['A', 'B'], outputs=['add1'], name='add_node1')\n+    node2 = make_node('Identity', inputs=['add1'], outputs=['identity1'], name='identity_node1')\n+    node3 = make_node('Abs', inputs=['identity1'], outputs=['Y'], name='abs_node1')\n+\n+    graph = make_graph([node1, node2, node3], 'test_graph',\n+                       [make_tensor_value_info('A', onnx.TensorProto.FLOAT, shape),\n+                        make_tensor_value_info('B', onnx.TensorProto.FLOAT, shape)],\n+                       [make_tensor_value_info('Y', onnx.TensorProto.FLOAT, shape)])\n+    model = make_model(graph, producer_name='ngarph ONNX Importer')","path":"tests/test_ops_unary.py","position":27,"original_position":27,"commit_id":"1bd3673cc65686c001556c10013ea37e1ead7798","original_commit_id":"1bd3673cc65686c001556c10013ea37e1ead7798","user":{"login":"postrational","id":4430709,"node_id":"MDQ6VXNlcjQ0MzA3MDk=","avatar_url":"https://avatars1.githubusercontent.com/u/4430709?v=4","gravatar_id":"","url":"https://api.github.com/users/postrational","html_url":"https://github.com/postrational","followers_url":"https://api.github.com/users/postrational/followers","following_url":"https://api.github.com/users/postrational/following{/other_user}","gists_url":"https://api.github.com/users/postrational/gists{/gist_id}","starred_url":"https://api.github.com/users/postrational/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postrational/subscriptions","organizations_url":"https://api.github.com/users/postrational/orgs","repos_url":"https://api.github.com/users/postrational/repos","events_url":"https://api.github.com/users/postrational/events{/privacy}","received_events_url":"https://api.github.com/users/postrational/received_events","type":"User","site_admin":false},"body":"Typo in `ngarph`","created_at":"2018-06-22T12:39:10Z","updated_at":"2018-06-22T12:39:31Z","html_url":"https://github.com/NervanaSystems/ngraph-onnx/pull/105#discussion_r197432750","pull_request_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/pulls/105","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/pulls/comments/197432750"},"html":{"href":"https://github.com/NervanaSystems/ngraph-onnx/pull/105#discussion_r197432750"},"pull_request":{"href":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/pulls/105"}}},"pull_request":{"url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/pulls/105","id":196081078,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2MDgxMDc4","html_url":"https://github.com/NervanaSystems/ngraph-onnx/pull/105","diff_url":"https://github.com/NervanaSystems/ngraph-onnx/pull/105.diff","patch_url":"https://github.com/NervanaSystems/ngraph-onnx/pull/105.patch","issue_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/issues/105","number":105,"state":"open","locked":false,"title":"The ONNX Identity operation.","user":{"login":"arogowie-intel","id":36447190,"node_id":"MDQ6VXNlcjM2NDQ3MTkw","avatar_url":"https://avatars0.githubusercontent.com/u/36447190?v=4","gravatar_id":"","url":"https://api.github.com/users/arogowie-intel","html_url":"https://github.com/arogowie-intel","followers_url":"https://api.github.com/users/arogowie-intel/followers","following_url":"https://api.github.com/users/arogowie-intel/following{/other_user}","gists_url":"https://api.github.com/users/arogowie-intel/gists{/gist_id}","starred_url":"https://api.github.com/users/arogowie-intel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arogowie-intel/subscriptions","organizations_url":"https://api.github.com/users/arogowie-intel/orgs","repos_url":"https://api.github.com/users/arogowie-intel/repos","events_url":"https://api.github.com/users/arogowie-intel/events{/privacy}","received_events_url":"https://api.github.com/users/arogowie-intel/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-20T09:49:32Z","updated_at":"2018-06-22T12:39:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f961449609034e4d87c9557064f1cdefdbc7619","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/pulls/105/commits","review_comments_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/pulls/105/comments","review_comment_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/issues/105/comments","statuses_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/statuses/1bd3673cc65686c001556c10013ea37e1ead7798","head":{"label":"NervanaSystems:arogowiec/identity_op","ref":"arogowiec/identity_op","sha":"1bd3673cc65686c001556c10013ea37e1ead7798","user":{"login":"NervanaSystems","id":9260121,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkyNjAxMjE=","avatar_url":"https://avatars2.githubusercontent.com/u/9260121?v=4","gravatar_id":"","url":"https://api.github.com/users/NervanaSystems","html_url":"https://github.com/NervanaSystems","followers_url":"https://api.github.com/users/NervanaSystems/followers","following_url":"https://api.github.com/users/NervanaSystems/following{/other_user}","gists_url":"https://api.github.com/users/NervanaSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/NervanaSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NervanaSystems/subscriptions","organizations_url":"https://api.github.com/users/NervanaSystems/orgs","repos_url":"https://api.github.com/users/NervanaSystems/repos","events_url":"https://api.github.com/users/NervanaSystems/events{/privacy}","received_events_url":"https://api.github.com/users/NervanaSystems/received_events","type":"Organization","site_admin":false},"repo":{"id":119039970,"node_id":"MDEwOlJlcG9zaXRvcnkxMTkwMzk5NzA=","name":"ngraph-onnx","full_name":"NervanaSystems/ngraph-onnx","owner":{"login":"NervanaSystems","id":9260121,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkyNjAxMjE=","avatar_url":"https://avatars2.githubusercontent.com/u/9260121?v=4","gravatar_id":"","url":"https://api.github.com/users/NervanaSystems","html_url":"https://github.com/NervanaSystems","followers_url":"https://api.github.com/users/NervanaSystems/followers","following_url":"https://api.github.com/users/NervanaSystems/following{/other_user}","gists_url":"https://api.github.com/users/NervanaSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/NervanaSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NervanaSystems/subscriptions","organizations_url":"https://api.github.com/users/NervanaSystems/orgs","repos_url":"https://api.github.com/users/NervanaSystems/repos","events_url":"https://api.github.com/users/NervanaSystems/events{/privacy}","received_events_url":"https://api.github.com/users/NervanaSystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NervanaSystems/ngraph-onnx","description":"nGraph™ Backend for ONNX","fork":false,"url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx","forks_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/forks","keys_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/teams","hooks_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/hooks","issue_events_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/issues/events{/number}","events_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/events","assignees_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/assignees{/user}","branches_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/branches{/branch}","tags_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/tags","blobs_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/git/refs{/sha}","trees_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/statuses/{sha}","languages_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/languages","stargazers_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/stargazers","contributors_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/contributors","subscribers_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/subscribers","subscription_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/subscription","commits_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/commits{/sha}","git_commits_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/git/commits{/sha}","comments_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/comments{/number}","issue_comment_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/issues/comments{/number}","contents_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/contents/{+path}","compare_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/merges","archive_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/downloads","issues_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/issues{/number}","pulls_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/pulls{/number}","milestones_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/milestones{/number}","notifications_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/labels{/name}","releases_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/releases{/id}","deployments_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/deployments","created_at":"2018-01-26T10:41:00Z","updated_at":"2018-06-22T08:38:13Z","pushed_at":"2018-06-22T12:18:06Z","git_url":"git://github.com/NervanaSystems/ngraph-onnx.git","ssh_url":"git@github.com:NervanaSystems/ngraph-onnx.git","clone_url":"https://github.com/NervanaSystems/ngraph-onnx.git","svn_url":"https://github.com/NervanaSystems/ngraph-onnx","homepage":"","size":93653,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"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":1,"open_issues":5,"watchers":12,"default_branch":"master"}},"base":{"label":"NervanaSystems:master","ref":"master","sha":"d58cf30ea86efeacbe4dd987033e7ca282dd49a0","user":{"login":"NervanaSystems","id":9260121,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkyNjAxMjE=","avatar_url":"https://avatars2.githubusercontent.com/u/9260121?v=4","gravatar_id":"","url":"https://api.github.com/users/NervanaSystems","html_url":"https://github.com/NervanaSystems","followers_url":"https://api.github.com/users/NervanaSystems/followers","following_url":"https://api.github.com/users/NervanaSystems/following{/other_user}","gists_url":"https://api.github.com/users/NervanaSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/NervanaSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NervanaSystems/subscriptions","organizations_url":"https://api.github.com/users/NervanaSystems/orgs","repos_url":"https://api.github.com/users/NervanaSystems/repos","events_url":"https://api.github.com/users/NervanaSystems/events{/privacy}","received_events_url":"https://api.github.com/users/NervanaSystems/received_events","type":"Organization","site_admin":false},"repo":{"id":119039970,"node_id":"MDEwOlJlcG9zaXRvcnkxMTkwMzk5NzA=","name":"ngraph-onnx","full_name":"NervanaSystems/ngraph-onnx","owner":{"login":"NervanaSystems","id":9260121,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkyNjAxMjE=","avatar_url":"https://avatars2.githubusercontent.com/u/9260121?v=4","gravatar_id":"","url":"https://api.github.com/users/NervanaSystems","html_url":"https://github.com/NervanaSystems","followers_url":"https://api.github.com/users/NervanaSystems/followers","following_url":"https://api.github.com/users/NervanaSystems/following{/other_user}","gists_url":"https://api.github.com/users/NervanaSystems/gists{/gist_id}","starred_url":"https://api.github.com/users/NervanaSystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NervanaSystems/subscriptions","organizations_url":"https://api.github.com/users/NervanaSystems/orgs","repos_url":"https://api.github.com/users/NervanaSystems/repos","events_url":"https://api.github.com/users/NervanaSystems/events{/privacy}","received_events_url":"https://api.github.com/users/NervanaSystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NervanaSystems/ngraph-onnx","description":"nGraph™ Backend for ONNX","fork":false,"url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx","forks_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/forks","keys_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/teams","hooks_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/hooks","issue_events_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/issues/events{/number}","events_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/events","assignees_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/assignees{/user}","branches_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/branches{/branch}","tags_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/tags","blobs_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/git/refs{/sha}","trees_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/statuses/{sha}","languages_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/languages","stargazers_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/stargazers","contributors_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/contributors","subscribers_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/subscribers","subscription_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/subscription","commits_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/commits{/sha}","git_commits_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/git/commits{/sha}","comments_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/comments{/number}","issue_comment_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/issues/comments{/number}","contents_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/contents/{+path}","compare_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/merges","archive_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/downloads","issues_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/issues{/number}","pulls_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/pulls{/number}","milestones_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/milestones{/number}","notifications_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/labels{/name}","releases_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/releases{/id}","deployments_url":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/deployments","created_at":"2018-01-26T10:41:00Z","updated_at":"2018-06-22T08:38:13Z","pushed_at":"2018-06-22T12:18:06Z","git_url":"git://github.com/NervanaSystems/ngraph-onnx.git","ssh_url":"git@github.com:NervanaSystems/ngraph-onnx.git","clone_url":"https://github.com/NervanaSystems/ngraph-onnx.git","svn_url":"https://github.com/NervanaSystems/ngraph-onnx","homepage":"","size":93653,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"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":1,"open_issues":5,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/pulls/105"},"html":{"href":"https://github.com/NervanaSystems/ngraph-onnx/pull/105"},"issue":{"href":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/issues/105"},"comments":{"href":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/issues/105/comments"},"review_comments":{"href":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/pulls/105/comments"},"review_comment":{"href":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/pulls/105/commits"},"statuses":{"href":"https://api.github.com/repos/NervanaSystems/ngraph-onnx/statuses/1bd3673cc65686c001556c10013ea37e1ead7798"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"postrational"}}