{"action":"opened","issue":{"url":"https://api.github.com/repos/pfnet/chainer/issues/1751","repository_url":"https://api.github.com/repos/pfnet/chainer","labels_url":"https://api.github.com/repos/pfnet/chainer/issues/1751/labels{/name}","comments_url":"https://api.github.com/repos/pfnet/chainer/issues/1751/comments","events_url":"https://api.github.com/repos/pfnet/chainer/issues/1751/events","html_url":"https://github.com/pfnet/chainer/issues/1751","id":181823590,"number":1751,"title":"ComputationalGraph make wrong graph around output value","user":{"login":"Hiroshiba","id":4987327,"avatar_url":"https://avatars.githubusercontent.com/u/4987327?v=3","gravatar_id":"","url":"https://api.github.com/users/Hiroshiba","html_url":"https://github.com/Hiroshiba","followers_url":"https://api.github.com/users/Hiroshiba/followers","following_url":"https://api.github.com/users/Hiroshiba/following{/other_user}","gists_url":"https://api.github.com/users/Hiroshiba/gists{/gist_id}","starred_url":"https://api.github.com/users/Hiroshiba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hiroshiba/subscriptions","organizations_url":"https://api.github.com/users/Hiroshiba/orgs","repos_url":"https://api.github.com/users/Hiroshiba/repos","events_url":"https://api.github.com/users/Hiroshiba/events{/privacy}","received_events_url":"https://api.github.com/users/Hiroshiba/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-08T12:30:20Z","updated_at":"2016-10-08T12:30:20Z","closed_at":null,"body":"```python\r\nimport numpy\r\nimport chainer\r\nimport chainer.computational_graph as C\r\n\r\nx = numpy.random.randn(10, 1).astype(numpy.float32)\r\nh = chainer.links.Linear(1, 2)(x)\r\n\r\ngraph = C.build_computational_graph(h)\r\nwith open('graph.dot', 'w') as o:\r\n    o.write(graph.dump())\r\n```\r\nand draw graph with `Graphviz`\r\n```sh\r\ndot -Tpng graph.dot -o outfile.png\r\n```\r\nget like this image\r\n![outfile](https://cloud.githubusercontent.com/assets/4987327/19213138/25e5c00c-8d9e-11e6-8195-54cc0e8e8ffa.png)\r\n\r\nThese 10 `GetItem` and `(2), float32` are not needed."}}
{"actor":{"display_login":"Hiroshiba"}}