{"action":"created","issue":{"url":"https://api.github.com/repos/chainer/chainer/issues/2927","repository_url":"https://api.github.com/repos/chainer/chainer","labels_url":"https://api.github.com/repos/chainer/chainer/issues/2927/labels{/name}","comments_url":"https://api.github.com/repos/chainer/chainer/issues/2927/comments","events_url":"https://api.github.com/repos/chainer/chainer/issues/2927/events","html_url":"https://github.com/chainer/chainer/pull/2927","id":239080630,"number":2927,"title":"Add print_report() method to Timer hook","user":{"login":"sonots","id":2290461,"avatar_url":"https://avatars1.githubusercontent.com/u/2290461?v=3","gravatar_id":"","url":"https://api.github.com/users/sonots","html_url":"https://github.com/sonots","followers_url":"https://api.github.com/users/sonots/followers","following_url":"https://api.github.com/users/sonots/following{/other_user}","gists_url":"https://api.github.com/users/sonots/gists{/gist_id}","starred_url":"https://api.github.com/users/sonots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonots/subscriptions","organizations_url":"https://api.github.com/users/sonots/orgs","repos_url":"https://api.github.com/users/sonots/repos","events_url":"https://api.github.com/users/sonots/events{/privacy}","received_events_url":"https://api.github.com/users/sonots/received_events","type":"User","site_admin":false},"labels":[{"id":222603817,"url":"https://api.github.com/repos/chainer/chainer/labels/feature","name":"feature","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"niboshi","id":635436,"avatar_url":"https://avatars3.githubusercontent.com/u/635436?v=3","gravatar_id":"","url":"https://api.github.com/users/niboshi","html_url":"https://github.com/niboshi","followers_url":"https://api.github.com/users/niboshi/followers","following_url":"https://api.github.com/users/niboshi/following{/other_user}","gists_url":"https://api.github.com/users/niboshi/gists{/gist_id}","starred_url":"https://api.github.com/users/niboshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niboshi/subscriptions","organizations_url":"https://api.github.com/users/niboshi/orgs","repos_url":"https://api.github.com/users/niboshi/repos","events_url":"https://api.github.com/users/niboshi/events{/privacy}","received_events_url":"https://api.github.com/users/niboshi/received_events","type":"User","site_admin":false},"assignees":[{"login":"niboshi","id":635436,"avatar_url":"https://avatars3.githubusercontent.com/u/635436?v=3","gravatar_id":"","url":"https://api.github.com/users/niboshi","html_url":"https://github.com/niboshi","followers_url":"https://api.github.com/users/niboshi/followers","following_url":"https://api.github.com/users/niboshi/following{/other_user}","gists_url":"https://api.github.com/users/niboshi/gists{/gist_id}","starred_url":"https://api.github.com/users/niboshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niboshi/subscriptions","organizations_url":"https://api.github.com/users/niboshi/orgs","repos_url":"https://api.github.com/users/niboshi/repos","events_url":"https://api.github.com/users/niboshi/events{/privacy}","received_events_url":"https://api.github.com/users/niboshi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2017-06-28T07:51:07Z","updated_at":"2017-07-07T03:30:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chainer/chainer/pulls/2927","html_url":"https://github.com/chainer/chainer/pull/2927","diff_url":"https://github.com/chainer/chainer/pull/2927.diff","patch_url":"https://github.com/chainer/chainer/pull/2927.patch"},"body":"Added `print_summary()` method to Timer hook so that we can do time profile similarly with the memory profiler of https://github.com/chainer/chainer/pull/2925\r\n\r\nAn example code:\r\n\r\n```python\r\nfrom chainer.function_hooks import TimerHook\r\n\r\nhook = TimerHook()\r\nwith hook:\r\n    trainer.run()\r\nhook.print_report()\r\n```\r\n\r\nOutputs from mnist example become as followings:\r\n\r\n```\r\nFunctionName    ElapsedTime     Occurrence\r\nLinearFunction  1.17sec 3900\r\nReLU    547.88ms        2600\r\nSoftmaxCrossEntropy     968.39ms        1300\r\nAccuracy        155.53ms        700\r\n``` #"},"comment":{"url":"https://api.github.com/repos/chainer/chainer/issues/comments/313578031","html_url":"https://github.com/chainer/chainer/pull/2927#issuecomment-313578031","issue_url":"https://api.github.com/repos/chainer/chainer/issues/2927","id":313578031,"user":{"login":"sonots","id":2290461,"avatar_url":"https://avatars1.githubusercontent.com/u/2290461?v=3","gravatar_id":"","url":"https://api.github.com/users/sonots","html_url":"https://github.com/sonots","followers_url":"https://api.github.com/users/sonots/followers","following_url":"https://api.github.com/users/sonots/following{/other_user}","gists_url":"https://api.github.com/users/sonots/gists{/gist_id}","starred_url":"https://api.github.com/users/sonots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonots/subscriptions","organizations_url":"https://api.github.com/users/sonots/orgs","repos_url":"https://api.github.com/users/sonots/repos","events_url":"https://api.github.com/users/sonots/events{/privacy}","received_events_url":"https://api.github.com/users/sonots/received_events","type":"User","site_admin":false},"created_at":"2017-07-07T03:30:17Z","updated_at":"2017-07-07T03:30:17Z","body":"I thought windows users may like `\\r\\n`, but I am not sure."}}
{"actor":{"display_login":"sonots"}}