{"action":"created","comment":{"url":"https://api.github.com/repos/pfnet/chainer/pulls/comments/67852836","id":67852836,"diff_hunk":"@@ -46,7 +46,9 @@ def backward(self, x, gy):\n         xp = cuda.get_array_module(*x)\n \n         gx = xp.empty_like(x[0])\n-        if self.axis is None:\n+        if not gx.shape: # zero dimension check","path":"chainer/functions/math/sum.py","position":5,"original_position":5,"commit_id":"199c624220e294e10be83f281afd413b8f3df259","original_commit_id":"199c624220e294e10be83f281afd413b8f3df259","user":{"login":"okuta","id":7133388,"avatar_url":"https://avatars.githubusercontent.com/u/7133388?v=3","gravatar_id":"","url":"https://api.github.com/users/okuta","html_url":"https://github.com/okuta","followers_url":"https://api.github.com/users/okuta/followers","following_url":"https://api.github.com/users/okuta/following{/other_user}","gists_url":"https://api.github.com/users/okuta/gists{/gist_id}","starred_url":"https://api.github.com/users/okuta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okuta/subscriptions","organizations_url":"https://api.github.com/users/okuta/orgs","repos_url":"https://api.github.com/users/okuta/repos","events_url":"https://api.github.com/users/okuta/events{/privacy}","received_events_url":"https://api.github.com/users/okuta/received_events","type":"User","site_admin":false},"body":"How about `gx.ndim == 0`?","created_at":"2016-06-21T11:43:31Z","updated_at":"2016-06-21T11:43:31Z","html_url":"https://github.com/pfnet/chainer/pull/1278#discussion_r67852836","pull_request_url":"https://api.github.com/repos/pfnet/chainer/pulls/1278","_links":{"self":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/comments/67852836"},"html":{"href":"https://github.com/pfnet/chainer/pull/1278#discussion_r67852836"},"pull_request":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/1278"}}},"pull_request":{"url":"https://api.github.com/repos/pfnet/chainer/pulls/1278","id":73917976,"html_url":"https://github.com/pfnet/chainer/pull/1278","diff_url":"https://github.com/pfnet/chainer/pull/1278.diff","patch_url":"https://github.com/pfnet/chainer/pull/1278.patch","issue_url":"https://api.github.com/repos/pfnet/chainer/issues/1278","number":1278,"state":"open","locked":false,"title":"fix 0-dim sum backward","user":{"login":"fukatani","id":8858287,"avatar_url":"https://avatars.githubusercontent.com/u/8858287?v=3","gravatar_id":"","url":"https://api.github.com/users/fukatani","html_url":"https://github.com/fukatani","followers_url":"https://api.github.com/users/fukatani/followers","following_url":"https://api.github.com/users/fukatani/following{/other_user}","gists_url":"https://api.github.com/users/fukatani/gists{/gist_id}","starred_url":"https://api.github.com/users/fukatani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fukatani/subscriptions","organizations_url":"https://api.github.com/users/fukatani/orgs","repos_url":"https://api.github.com/users/fukatani/repos","events_url":"https://api.github.com/users/fukatani/events{/privacy}","received_events_url":"https://api.github.com/users/fukatani/received_events","type":"User","site_admin":false},"body":"I'm going to fix #1152 at June 21st http://chainer.connpass.com/event/33526/.","created_at":"2016-06-15T14:08:09Z","updated_at":"2016-06-21T11:43:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"36ef54fce30dbdf7b82ef0c619667bb8c445705f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pfnet/chainer/pulls/1278/commits","review_comments_url":"https://api.github.com/repos/pfnet/chainer/pulls/1278/comments","review_comment_url":"https://api.github.com/repos/pfnet/chainer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pfnet/chainer/issues/1278/comments","statuses_url":"https://api.github.com/repos/pfnet/chainer/statuses/199c624220e294e10be83f281afd413b8f3df259","head":{"label":"fukatani:fix-sum-zerodim","ref":"fix-sum-zerodim","sha":"199c624220e294e10be83f281afd413b8f3df259","user":{"login":"fukatani","id":8858287,"avatar_url":"https://avatars.githubusercontent.com/u/8858287?v=3","gravatar_id":"","url":"https://api.github.com/users/fukatani","html_url":"https://github.com/fukatani","followers_url":"https://api.github.com/users/fukatani/followers","following_url":"https://api.github.com/users/fukatani/following{/other_user}","gists_url":"https://api.github.com/users/fukatani/gists{/gist_id}","starred_url":"https://api.github.com/users/fukatani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fukatani/subscriptions","organizations_url":"https://api.github.com/users/fukatani/orgs","repos_url":"https://api.github.com/users/fukatani/repos","events_url":"https://api.github.com/users/fukatani/events{/privacy}","received_events_url":"https://api.github.com/users/fukatani/received_events","type":"User","site_admin":false},"repo":{"id":61127299,"name":"chainer","full_name":"fukatani/chainer","owner":{"login":"fukatani","id":8858287,"avatar_url":"https://avatars.githubusercontent.com/u/8858287?v=3","gravatar_id":"","url":"https://api.github.com/users/fukatani","html_url":"https://github.com/fukatani","followers_url":"https://api.github.com/users/fukatani/followers","following_url":"https://api.github.com/users/fukatani/following{/other_user}","gists_url":"https://api.github.com/users/fukatani/gists{/gist_id}","starred_url":"https://api.github.com/users/fukatani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fukatani/subscriptions","organizations_url":"https://api.github.com/users/fukatani/orgs","repos_url":"https://api.github.com/users/fukatani/repos","events_url":"https://api.github.com/users/fukatani/events{/privacy}","received_events_url":"https://api.github.com/users/fukatani/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fukatani/chainer","description":"A flexible framework of neural networks for deep learning","fork":true,"url":"https://api.github.com/repos/fukatani/chainer","forks_url":"https://api.github.com/repos/fukatani/chainer/forks","keys_url":"https://api.github.com/repos/fukatani/chainer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fukatani/chainer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fukatani/chainer/teams","hooks_url":"https://api.github.com/repos/fukatani/chainer/hooks","issue_events_url":"https://api.github.com/repos/fukatani/chainer/issues/events{/number}","events_url":"https://api.github.com/repos/fukatani/chainer/events","assignees_url":"https://api.github.com/repos/fukatani/chainer/assignees{/user}","branches_url":"https://api.github.com/repos/fukatani/chainer/branches{/branch}","tags_url":"https://api.github.com/repos/fukatani/chainer/tags","blobs_url":"https://api.github.com/repos/fukatani/chainer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fukatani/chainer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fukatani/chainer/git/refs{/sha}","trees_url":"https://api.github.com/repos/fukatani/chainer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fukatani/chainer/statuses/{sha}","languages_url":"https://api.github.com/repos/fukatani/chainer/languages","stargazers_url":"https://api.github.com/repos/fukatani/chainer/stargazers","contributors_url":"https://api.github.com/repos/fukatani/chainer/contributors","subscribers_url":"https://api.github.com/repos/fukatani/chainer/subscribers","subscription_url":"https://api.github.com/repos/fukatani/chainer/subscription","commits_url":"https://api.github.com/repos/fukatani/chainer/commits{/sha}","git_commits_url":"https://api.github.com/repos/fukatani/chainer/git/commits{/sha}","comments_url":"https://api.github.com/repos/fukatani/chainer/comments{/number}","issue_comment_url":"https://api.github.com/repos/fukatani/chainer/issues/comments{/number}","contents_url":"https://api.github.com/repos/fukatani/chainer/contents/{+path}","compare_url":"https://api.github.com/repos/fukatani/chainer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fukatani/chainer/merges","archive_url":"https://api.github.com/repos/fukatani/chainer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fukatani/chainer/downloads","issues_url":"https://api.github.com/repos/fukatani/chainer/issues{/number}","pulls_url":"https://api.github.com/repos/fukatani/chainer/pulls{/number}","milestones_url":"https://api.github.com/repos/fukatani/chainer/milestones{/number}","notifications_url":"https://api.github.com/repos/fukatani/chainer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fukatani/chainer/labels{/name}","releases_url":"https://api.github.com/repos/fukatani/chainer/releases{/id}","deployments_url":"https://api.github.com/repos/fukatani/chainer/deployments","created_at":"2016-06-14T13:58:53Z","updated_at":"2016-06-14T13:58:55Z","pushed_at":"2016-06-21T11:15:28Z","git_url":"git://github.com/fukatani/chainer.git","ssh_url":"git@github.com:fukatani/chainer.git","clone_url":"https://github.com/fukatani/chainer.git","svn_url":"https://github.com/fukatani/chainer","homepage":"http://chainer.org","size":11095,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pfnet:master","ref":"master","sha":"9eaeabea2178c0862b62bed79c2030c85b2ba507","user":{"login":"pfnet","id":9739572,"avatar_url":"https://avatars.githubusercontent.com/u/9739572?v=3","gravatar_id":"","url":"https://api.github.com/users/pfnet","html_url":"https://github.com/pfnet","followers_url":"https://api.github.com/users/pfnet/followers","following_url":"https://api.github.com/users/pfnet/following{/other_user}","gists_url":"https://api.github.com/users/pfnet/gists{/gist_id}","starred_url":"https://api.github.com/users/pfnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfnet/subscriptions","organizations_url":"https://api.github.com/users/pfnet/orgs","repos_url":"https://api.github.com/users/pfnet/repos","events_url":"https://api.github.com/users/pfnet/events{/privacy}","received_events_url":"https://api.github.com/users/pfnet/received_events","type":"Organization","site_admin":false},"repo":{"id":36914478,"name":"chainer","full_name":"pfnet/chainer","owner":{"login":"pfnet","id":9739572,"avatar_url":"https://avatars.githubusercontent.com/u/9739572?v=3","gravatar_id":"","url":"https://api.github.com/users/pfnet","html_url":"https://github.com/pfnet","followers_url":"https://api.github.com/users/pfnet/followers","following_url":"https://api.github.com/users/pfnet/following{/other_user}","gists_url":"https://api.github.com/users/pfnet/gists{/gist_id}","starred_url":"https://api.github.com/users/pfnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfnet/subscriptions","organizations_url":"https://api.github.com/users/pfnet/orgs","repos_url":"https://api.github.com/users/pfnet/repos","events_url":"https://api.github.com/users/pfnet/events{/privacy}","received_events_url":"https://api.github.com/users/pfnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pfnet/chainer","description":"A flexible framework of neural networks for deep learning","fork":false,"url":"https://api.github.com/repos/pfnet/chainer","forks_url":"https://api.github.com/repos/pfnet/chainer/forks","keys_url":"https://api.github.com/repos/pfnet/chainer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pfnet/chainer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pfnet/chainer/teams","hooks_url":"https://api.github.com/repos/pfnet/chainer/hooks","issue_events_url":"https://api.github.com/repos/pfnet/chainer/issues/events{/number}","events_url":"https://api.github.com/repos/pfnet/chainer/events","assignees_url":"https://api.github.com/repos/pfnet/chainer/assignees{/user}","branches_url":"https://api.github.com/repos/pfnet/chainer/branches{/branch}","tags_url":"https://api.github.com/repos/pfnet/chainer/tags","blobs_url":"https://api.github.com/repos/pfnet/chainer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pfnet/chainer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pfnet/chainer/git/refs{/sha}","trees_url":"https://api.github.com/repos/pfnet/chainer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pfnet/chainer/statuses/{sha}","languages_url":"https://api.github.com/repos/pfnet/chainer/languages","stargazers_url":"https://api.github.com/repos/pfnet/chainer/stargazers","contributors_url":"https://api.github.com/repos/pfnet/chainer/contributors","subscribers_url":"https://api.github.com/repos/pfnet/chainer/subscribers","subscription_url":"https://api.github.com/repos/pfnet/chainer/subscription","commits_url":"https://api.github.com/repos/pfnet/chainer/commits{/sha}","git_commits_url":"https://api.github.com/repos/pfnet/chainer/git/commits{/sha}","comments_url":"https://api.github.com/repos/pfnet/chainer/comments{/number}","issue_comment_url":"https://api.github.com/repos/pfnet/chainer/issues/comments{/number}","contents_url":"https://api.github.com/repos/pfnet/chainer/contents/{+path}","compare_url":"https://api.github.com/repos/pfnet/chainer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pfnet/chainer/merges","archive_url":"https://api.github.com/repos/pfnet/chainer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pfnet/chainer/downloads","issues_url":"https://api.github.com/repos/pfnet/chainer/issues{/number}","pulls_url":"https://api.github.com/repos/pfnet/chainer/pulls{/number}","milestones_url":"https://api.github.com/repos/pfnet/chainer/milestones{/number}","notifications_url":"https://api.github.com/repos/pfnet/chainer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pfnet/chainer/labels{/name}","releases_url":"https://api.github.com/repos/pfnet/chainer/releases{/id}","deployments_url":"https://api.github.com/repos/pfnet/chainer/deployments","created_at":"2015-06-05T05:50:37Z","updated_at":"2016-06-21T06:06:05Z","pushed_at":"2016-06-21T11:25:14Z","git_url":"git://github.com/pfnet/chainer.git","ssh_url":"git@github.com:pfnet/chainer.git","clone_url":"https://github.com/pfnet/chainer.git","svn_url":"https://github.com/pfnet/chainer","homepage":"http://chainer.org","size":20731,"stargazers_count":1446,"watchers_count":1446,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":317,"mirror_url":null,"open_issues_count":162,"forks":317,"open_issues":162,"watchers":1446,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/1278"},"html":{"href":"https://github.com/pfnet/chainer/pull/1278"},"issue":{"href":"https://api.github.com/repos/pfnet/chainer/issues/1278"},"comments":{"href":"https://api.github.com/repos/pfnet/chainer/issues/1278/comments"},"review_comments":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/1278/comments"},"review_comment":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/1278/commits"},"statuses":{"href":"https://api.github.com/repos/pfnet/chainer/statuses/199c624220e294e10be83f281afd413b8f3df259"}}}}
{"actor":{"display_login":"okuta"}}