{"action":"closed","number":2201,"pull_request":{"url":"https://api.github.com/repos/pfnet/chainer/pulls/2201","id":103740812,"html_url":"https://github.com/pfnet/chainer/pull/2201","diff_url":"https://github.com/pfnet/chainer/pull/2201.diff","patch_url":"https://github.com/pfnet/chainer/pull/2201.patch","issue_url":"https://api.github.com/repos/pfnet/chainer/issues/2201","number":2201,"state":"closed","locked":false,"title":"Support mask for cupy.ndarray.__getitem__ when mask and array's shape differ","user":{"login":"yuyu2172","id":2062128,"avatar_url":"https://avatars.githubusercontent.com/u/2062128?v=3","gravatar_id":"","url":"https://api.github.com/users/yuyu2172","html_url":"https://github.com/yuyu2172","followers_url":"https://api.github.com/users/yuyu2172/followers","following_url":"https://api.github.com/users/yuyu2172/following{/other_user}","gists_url":"https://api.github.com/users/yuyu2172/gists{/gist_id}","starred_url":"https://api.github.com/users/yuyu2172/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuyu2172/subscriptions","organizations_url":"https://api.github.com/users/yuyu2172/orgs","repos_url":"https://api.github.com/users/yuyu2172/repos","events_url":"https://api.github.com/users/yuyu2172/events{/privacy}","received_events_url":"https://api.github.com/users/yuyu2172/received_events","type":"User","site_admin":false},"body":"This PR adds support for `cupy.ndarray.__getitem__` to handle a boolean mask array even when the mask's shape and array's shape differ.\r\n\r\nMost of the implementation follows/extends that of `_scatter_op_mask_single`.\r\n\r\nNote: In addition to that, here are some other things that are added.\r\n+ consistency among names of the masking function for getitem and setitem\r\n+ add tests for cupy.__getitem__ that uses `cupy.ndarray` indices. I restored tests that were removed in #1912.","created_at":"2017-01-30T13:59:31Z","updated_at":"2017-02-13T05:40:14Z","closed_at":"2017-02-13T05:40:14Z","merged_at":"2017-02-13T05:40:14Z","merge_commit_sha":"8b495808967c40098e50a95cceb8b927c1192368","assignee":{"login":"rezoo","id":212315,"avatar_url":"https://avatars.githubusercontent.com/u/212315?v=3","gravatar_id":"","url":"https://api.github.com/users/rezoo","html_url":"https://github.com/rezoo","followers_url":"https://api.github.com/users/rezoo/followers","following_url":"https://api.github.com/users/rezoo/following{/other_user}","gists_url":"https://api.github.com/users/rezoo/gists{/gist_id}","starred_url":"https://api.github.com/users/rezoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rezoo/subscriptions","organizations_url":"https://api.github.com/users/rezoo/orgs","repos_url":"https://api.github.com/users/rezoo/repos","events_url":"https://api.github.com/users/rezoo/events{/privacy}","received_events_url":"https://api.github.com/users/rezoo/received_events","type":"User","site_admin":false},"assignees":[{"login":"rezoo","id":212315,"avatar_url":"https://avatars.githubusercontent.com/u/212315?v=3","gravatar_id":"","url":"https://api.github.com/users/rezoo","html_url":"https://github.com/rezoo","followers_url":"https://api.github.com/users/rezoo/followers","following_url":"https://api.github.com/users/rezoo/following{/other_user}","gists_url":"https://api.github.com/users/rezoo/gists{/gist_id}","starred_url":"https://api.github.com/users/rezoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rezoo/subscriptions","organizations_url":"https://api.github.com/users/rezoo/orgs","repos_url":"https://api.github.com/users/rezoo/repos","events_url":"https://api.github.com/users/rezoo/events{/privacy}","received_events_url":"https://api.github.com/users/rezoo/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/pfnet/chainer/pulls/2201/commits","review_comments_url":"https://api.github.com/repos/pfnet/chainer/pulls/2201/comments","review_comment_url":"https://api.github.com/repos/pfnet/chainer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pfnet/chainer/issues/2201/comments","statuses_url":"https://api.github.com/repos/pfnet/chainer/statuses/1d4054dae679e64dc54fbec20e52c2cf1fec8cf8","head":{"label":"yuyu2172:getitem-mask-general","ref":"getitem-mask-general","sha":"1d4054dae679e64dc54fbec20e52c2cf1fec8cf8","user":{"login":"yuyu2172","id":2062128,"avatar_url":"https://avatars.githubusercontent.com/u/2062128?v=3","gravatar_id":"","url":"https://api.github.com/users/yuyu2172","html_url":"https://github.com/yuyu2172","followers_url":"https://api.github.com/users/yuyu2172/followers","following_url":"https://api.github.com/users/yuyu2172/following{/other_user}","gists_url":"https://api.github.com/users/yuyu2172/gists{/gist_id}","starred_url":"https://api.github.com/users/yuyu2172/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuyu2172/subscriptions","organizations_url":"https://api.github.com/users/yuyu2172/orgs","repos_url":"https://api.github.com/users/yuyu2172/repos","events_url":"https://api.github.com/users/yuyu2172/events{/privacy}","received_events_url":"https://api.github.com/users/yuyu2172/received_events","type":"User","site_admin":false},"repo":{"id":59400182,"name":"chainer","full_name":"yuyu2172/chainer","owner":{"login":"yuyu2172","id":2062128,"avatar_url":"https://avatars.githubusercontent.com/u/2062128?v=3","gravatar_id":"","url":"https://api.github.com/users/yuyu2172","html_url":"https://github.com/yuyu2172","followers_url":"https://api.github.com/users/yuyu2172/followers","following_url":"https://api.github.com/users/yuyu2172/following{/other_user}","gists_url":"https://api.github.com/users/yuyu2172/gists{/gist_id}","starred_url":"https://api.github.com/users/yuyu2172/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuyu2172/subscriptions","organizations_url":"https://api.github.com/users/yuyu2172/orgs","repos_url":"https://api.github.com/users/yuyu2172/repos","events_url":"https://api.github.com/users/yuyu2172/events{/privacy}","received_events_url":"https://api.github.com/users/yuyu2172/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yuyu2172/chainer","description":"A flexible framework of neural networks for deep learning","fork":true,"url":"https://api.github.com/repos/yuyu2172/chainer","forks_url":"https://api.github.com/repos/yuyu2172/chainer/forks","keys_url":"https://api.github.com/repos/yuyu2172/chainer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuyu2172/chainer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuyu2172/chainer/teams","hooks_url":"https://api.github.com/repos/yuyu2172/chainer/hooks","issue_events_url":"https://api.github.com/repos/yuyu2172/chainer/issues/events{/number}","events_url":"https://api.github.com/repos/yuyu2172/chainer/events","assignees_url":"https://api.github.com/repos/yuyu2172/chainer/assignees{/user}","branches_url":"https://api.github.com/repos/yuyu2172/chainer/branches{/branch}","tags_url":"https://api.github.com/repos/yuyu2172/chainer/tags","blobs_url":"https://api.github.com/repos/yuyu2172/chainer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuyu2172/chainer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuyu2172/chainer/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuyu2172/chainer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuyu2172/chainer/statuses/{sha}","languages_url":"https://api.github.com/repos/yuyu2172/chainer/languages","stargazers_url":"https://api.github.com/repos/yuyu2172/chainer/stargazers","contributors_url":"https://api.github.com/repos/yuyu2172/chainer/contributors","subscribers_url":"https://api.github.com/repos/yuyu2172/chainer/subscribers","subscription_url":"https://api.github.com/repos/yuyu2172/chainer/subscription","commits_url":"https://api.github.com/repos/yuyu2172/chainer/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuyu2172/chainer/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuyu2172/chainer/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuyu2172/chainer/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuyu2172/chainer/contents/{+path}","compare_url":"https://api.github.com/repos/yuyu2172/chainer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuyu2172/chainer/merges","archive_url":"https://api.github.com/repos/yuyu2172/chainer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuyu2172/chainer/downloads","issues_url":"https://api.github.com/repos/yuyu2172/chainer/issues{/number}","pulls_url":"https://api.github.com/repos/yuyu2172/chainer/pulls{/number}","milestones_url":"https://api.github.com/repos/yuyu2172/chainer/milestones{/number}","notifications_url":"https://api.github.com/repos/yuyu2172/chainer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuyu2172/chainer/labels{/name}","releases_url":"https://api.github.com/repos/yuyu2172/chainer/releases{/id}","deployments_url":"https://api.github.com/repos/yuyu2172/chainer/deployments","created_at":"2016-05-22T07:24:14Z","updated_at":"2016-05-22T07:24:18Z","pushed_at":"2017-02-06T07:03:11Z","git_url":"git://github.com/yuyu2172/chainer.git","ssh_url":"git@github.com:yuyu2172/chainer.git","clone_url":"https://github.com/yuyu2172/chainer.git","svn_url":"https://github.com/yuyu2172/chainer","homepage":"http://chainer.org","size":14480,"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":"cecca7255b097f3f8995b000714ad9eec3aea4f8","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":"2017-02-13T02:03:16Z","pushed_at":"2017-02-13T05:40: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":10881,"stargazers_count":2160,"watchers_count":2160,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":570,"mirror_url":null,"open_issues_count":353,"forks":570,"open_issues":353,"watchers":2160,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/2201"},"html":{"href":"https://github.com/pfnet/chainer/pull/2201"},"issue":{"href":"https://api.github.com/repos/pfnet/chainer/issues/2201"},"comments":{"href":"https://api.github.com/repos/pfnet/chainer/issues/2201/comments"},"review_comments":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/2201/comments"},"review_comment":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/2201/commits"},"statuses":{"href":"https://api.github.com/repos/pfnet/chainer/statuses/1d4054dae679e64dc54fbec20e52c2cf1fec8cf8"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"rezoo","id":212315,"avatar_url":"https://avatars.githubusercontent.com/u/212315?v=3","gravatar_id":"","url":"https://api.github.com/users/rezoo","html_url":"https://github.com/rezoo","followers_url":"https://api.github.com/users/rezoo/followers","following_url":"https://api.github.com/users/rezoo/following{/other_user}","gists_url":"https://api.github.com/users/rezoo/gists{/gist_id}","starred_url":"https://api.github.com/users/rezoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rezoo/subscriptions","organizations_url":"https://api.github.com/users/rezoo/orgs","repos_url":"https://api.github.com/users/rezoo/repos","events_url":"https://api.github.com/users/rezoo/events{/privacy}","received_events_url":"https://api.github.com/users/rezoo/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":12,"additions":105,"deletions":57,"changed_files":2}}
{"actor":{"display_login":"rezoo"}}