{"action":"created","comment":{"url":"https://api.github.com/repos/chainer/chainer/pulls/comments/173745619","pull_request_review_id":102982755,"id":173745619,"diff_hunk":"@@ -1273,18 +1274,21 @@ def __reduce__(self):\n     def to_cpu(self):\n         super(Parameter, self).to_cpu()\n         if self.data is None:\n+            self._initial_backend = None\n             self._initial_device = None\n \n     def to_gpu(self, device=None):\n         super(Parameter, self).to_gpu(device)\n         if self.data is None:\n             if device is None:\n                 device = cuda.Device().id\n+            self._initial_backend = 'cuda'\n             self._initial_device = device\n \n     def to_intel64(self):\n         super(Parameter, self).to_intel64()\n         if self.data is None:\n+            self._initial_backend = 'intel64'","path":"chainer/variable.py","position":null,"original_position":26,"commit_id":"48f699fd741432615988e72ea622faa77cb6bcb4","original_commit_id":"0a5ca7c123f5b1196ba339df46e60d2e54eac81e","user":{"login":"kmaehashi","id":939877,"avatar_url":"https://avatars0.githubusercontent.com/u/939877?v=4","gravatar_id":"","url":"https://api.github.com/users/kmaehashi","html_url":"https://github.com/kmaehashi","followers_url":"https://api.github.com/users/kmaehashi/followers","following_url":"https://api.github.com/users/kmaehashi/following{/other_user}","gists_url":"https://api.github.com/users/kmaehashi/gists{/gist_id}","starred_url":"https://api.github.com/users/kmaehashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmaehashi/subscriptions","organizations_url":"https://api.github.com/users/kmaehashi/orgs","repos_url":"https://api.github.com/users/kmaehashi/repos","events_url":"https://api.github.com/users/kmaehashi/events{/privacy}","received_events_url":"https://api.github.com/users/kmaehashi/received_events","type":"User","site_admin":false},"body":"I interned these string constants.\r\nWhen more backends are added, maybe it's better to define them in each backend like `chainer.backneds.cuda.ID`.","created_at":"2018-03-12T10:14:31Z","updated_at":"2018-03-12T10:14:31Z","html_url":"https://github.com/chainer/chainer/pull/4457#discussion_r173745619","pull_request_url":"https://api.github.com/repos/chainer/chainer/pulls/4457","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/chainer/chainer/pulls/comments/173745619"},"html":{"href":"https://github.com/chainer/chainer/pull/4457#discussion_r173745619"},"pull_request":{"href":"https://api.github.com/repos/chainer/chainer/pulls/4457"}},"in_reply_to_id":173704958},"pull_request":{"url":"https://api.github.com/repos/chainer/chainer/pulls/4457","id":174278731,"html_url":"https://github.com/chainer/chainer/pull/4457","diff_url":"https://github.com/chainer/chainer/pull/4457.diff","patch_url":"https://github.com/chainer/chainer/pull/4457.patch","issue_url":"https://api.github.com/repos/chainer/chainer/issues/4457","number":4457,"state":"open","locked":false,"title":"[WIP] Fix to disable using iDeep in optimizers if to_intel64 is not called","user":{"login":"kmaehashi","id":939877,"avatar_url":"https://avatars0.githubusercontent.com/u/939877?v=4","gravatar_id":"","url":"https://api.github.com/users/kmaehashi","html_url":"https://github.com/kmaehashi","followers_url":"https://api.github.com/users/kmaehashi/followers","following_url":"https://api.github.com/users/kmaehashi/following{/other_user}","gists_url":"https://api.github.com/users/kmaehashi/gists{/gist_id}","starred_url":"https://api.github.com/users/kmaehashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmaehashi/subscriptions","organizations_url":"https://api.github.com/users/kmaehashi/orgs","repos_url":"https://api.github.com/users/kmaehashi/repos","events_url":"https://api.github.com/users/kmaehashi/events{/privacy}","received_events_url":"https://api.github.com/users/kmaehashi/received_events","type":"User","site_admin":false},"body":"Currently iDeep cannot be disabled when `MomentumSGD` is used.\r\nThis makes performance worse due to the copy overhead.\r\n\r\nTODO: add tests.","created_at":"2018-03-12T05:58:57Z","updated_at":"2018-03-12T10:14:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7efc5b8821036962cceb8ae6ba0c9c5c7e92ac19","assignee":{"login":"niboshi","id":635436,"avatar_url":"https://avatars0.githubusercontent.com/u/635436?v=4","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://avatars0.githubusercontent.com/u/635436?v=4","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}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":220754693,"url":"https://api.github.com/repos/chainer/chainer/labels/bug","name":"bug","color":"fc2929","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/chainer/chainer/pulls/4457/commits","review_comments_url":"https://api.github.com/repos/chainer/chainer/pulls/4457/comments","review_comment_url":"https://api.github.com/repos/chainer/chainer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chainer/chainer/issues/4457/comments","statuses_url":"https://api.github.com/repos/chainer/chainer/statuses/48f699fd741432615988e72ea622faa77cb6bcb4","head":{"label":"kmaehashi:fix-ideep-optimizer","ref":"fix-ideep-optimizer","sha":"48f699fd741432615988e72ea622faa77cb6bcb4","user":{"login":"kmaehashi","id":939877,"avatar_url":"https://avatars0.githubusercontent.com/u/939877?v=4","gravatar_id":"","url":"https://api.github.com/users/kmaehashi","html_url":"https://github.com/kmaehashi","followers_url":"https://api.github.com/users/kmaehashi/followers","following_url":"https://api.github.com/users/kmaehashi/following{/other_user}","gists_url":"https://api.github.com/users/kmaehashi/gists{/gist_id}","starred_url":"https://api.github.com/users/kmaehashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmaehashi/subscriptions","organizations_url":"https://api.github.com/users/kmaehashi/orgs","repos_url":"https://api.github.com/users/kmaehashi/repos","events_url":"https://api.github.com/users/kmaehashi/events{/privacy}","received_events_url":"https://api.github.com/users/kmaehashi/received_events","type":"User","site_admin":false},"repo":{"id":105627174,"name":"chainer","full_name":"kmaehashi/chainer","owner":{"login":"kmaehashi","id":939877,"avatar_url":"https://avatars0.githubusercontent.com/u/939877?v=4","gravatar_id":"","url":"https://api.github.com/users/kmaehashi","html_url":"https://github.com/kmaehashi","followers_url":"https://api.github.com/users/kmaehashi/followers","following_url":"https://api.github.com/users/kmaehashi/following{/other_user}","gists_url":"https://api.github.com/users/kmaehashi/gists{/gist_id}","starred_url":"https://api.github.com/users/kmaehashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmaehashi/subscriptions","organizations_url":"https://api.github.com/users/kmaehashi/orgs","repos_url":"https://api.github.com/users/kmaehashi/repos","events_url":"https://api.github.com/users/kmaehashi/events{/privacy}","received_events_url":"https://api.github.com/users/kmaehashi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kmaehashi/chainer","description":"A flexible framework of neural networks for deep learning","fork":true,"url":"https://api.github.com/repos/kmaehashi/chainer","forks_url":"https://api.github.com/repos/kmaehashi/chainer/forks","keys_url":"https://api.github.com/repos/kmaehashi/chainer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kmaehashi/chainer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kmaehashi/chainer/teams","hooks_url":"https://api.github.com/repos/kmaehashi/chainer/hooks","issue_events_url":"https://api.github.com/repos/kmaehashi/chainer/issues/events{/number}","events_url":"https://api.github.com/repos/kmaehashi/chainer/events","assignees_url":"https://api.github.com/repos/kmaehashi/chainer/assignees{/user}","branches_url":"https://api.github.com/repos/kmaehashi/chainer/branches{/branch}","tags_url":"https://api.github.com/repos/kmaehashi/chainer/tags","blobs_url":"https://api.github.com/repos/kmaehashi/chainer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kmaehashi/chainer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kmaehashi/chainer/git/refs{/sha}","trees_url":"https://api.github.com/repos/kmaehashi/chainer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kmaehashi/chainer/statuses/{sha}","languages_url":"https://api.github.com/repos/kmaehashi/chainer/languages","stargazers_url":"https://api.github.com/repos/kmaehashi/chainer/stargazers","contributors_url":"https://api.github.com/repos/kmaehashi/chainer/contributors","subscribers_url":"https://api.github.com/repos/kmaehashi/chainer/subscribers","subscription_url":"https://api.github.com/repos/kmaehashi/chainer/subscription","commits_url":"https://api.github.com/repos/kmaehashi/chainer/commits{/sha}","git_commits_url":"https://api.github.com/repos/kmaehashi/chainer/git/commits{/sha}","comments_url":"https://api.github.com/repos/kmaehashi/chainer/comments{/number}","issue_comment_url":"https://api.github.com/repos/kmaehashi/chainer/issues/comments{/number}","contents_url":"https://api.github.com/repos/kmaehashi/chainer/contents/{+path}","compare_url":"https://api.github.com/repos/kmaehashi/chainer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kmaehashi/chainer/merges","archive_url":"https://api.github.com/repos/kmaehashi/chainer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kmaehashi/chainer/downloads","issues_url":"https://api.github.com/repos/kmaehashi/chainer/issues{/number}","pulls_url":"https://api.github.com/repos/kmaehashi/chainer/pulls{/number}","milestones_url":"https://api.github.com/repos/kmaehashi/chainer/milestones{/number}","notifications_url":"https://api.github.com/repos/kmaehashi/chainer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kmaehashi/chainer/labels{/name}","releases_url":"https://api.github.com/repos/kmaehashi/chainer/releases{/id}","deployments_url":"https://api.github.com/repos/kmaehashi/chainer/deployments","created_at":"2017-10-03T07:55:58Z","updated_at":"2017-10-03T07:56:03Z","pushed_at":"2018-03-12T10:13:23Z","git_url":"git://github.com/kmaehashi/chainer.git","ssh_url":"git@github.com:kmaehashi/chainer.git","clone_url":"https://github.com/kmaehashi/chainer.git","svn_url":"https://github.com/kmaehashi/chainer","homepage":"https://chainer.org","size":93504,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"chainer:master","ref":"master","sha":"8046a3759d2d628944e9b8ab2ba8c8628fb4a387","user":{"login":"chainer","id":23183003,"avatar_url":"https://avatars3.githubusercontent.com/u/23183003?v=4","gravatar_id":"","url":"https://api.github.com/users/chainer","html_url":"https://github.com/chainer","followers_url":"https://api.github.com/users/chainer/followers","following_url":"https://api.github.com/users/chainer/following{/other_user}","gists_url":"https://api.github.com/users/chainer/gists{/gist_id}","starred_url":"https://api.github.com/users/chainer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chainer/subscriptions","organizations_url":"https://api.github.com/users/chainer/orgs","repos_url":"https://api.github.com/users/chainer/repos","events_url":"https://api.github.com/users/chainer/events{/privacy}","received_events_url":"https://api.github.com/users/chainer/received_events","type":"Organization","site_admin":false},"repo":{"id":36914478,"name":"chainer","full_name":"chainer/chainer","owner":{"login":"chainer","id":23183003,"avatar_url":"https://avatars3.githubusercontent.com/u/23183003?v=4","gravatar_id":"","url":"https://api.github.com/users/chainer","html_url":"https://github.com/chainer","followers_url":"https://api.github.com/users/chainer/followers","following_url":"https://api.github.com/users/chainer/following{/other_user}","gists_url":"https://api.github.com/users/chainer/gists{/gist_id}","starred_url":"https://api.github.com/users/chainer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chainer/subscriptions","organizations_url":"https://api.github.com/users/chainer/orgs","repos_url":"https://api.github.com/users/chainer/repos","events_url":"https://api.github.com/users/chainer/events{/privacy}","received_events_url":"https://api.github.com/users/chainer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chainer/chainer","description":"A flexible framework of neural networks for deep learning","fork":false,"url":"https://api.github.com/repos/chainer/chainer","forks_url":"https://api.github.com/repos/chainer/chainer/forks","keys_url":"https://api.github.com/repos/chainer/chainer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chainer/chainer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chainer/chainer/teams","hooks_url":"https://api.github.com/repos/chainer/chainer/hooks","issue_events_url":"https://api.github.com/repos/chainer/chainer/issues/events{/number}","events_url":"https://api.github.com/repos/chainer/chainer/events","assignees_url":"https://api.github.com/repos/chainer/chainer/assignees{/user}","branches_url":"https://api.github.com/repos/chainer/chainer/branches{/branch}","tags_url":"https://api.github.com/repos/chainer/chainer/tags","blobs_url":"https://api.github.com/repos/chainer/chainer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chainer/chainer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chainer/chainer/git/refs{/sha}","trees_url":"https://api.github.com/repos/chainer/chainer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chainer/chainer/statuses/{sha}","languages_url":"https://api.github.com/repos/chainer/chainer/languages","stargazers_url":"https://api.github.com/repos/chainer/chainer/stargazers","contributors_url":"https://api.github.com/repos/chainer/chainer/contributors","subscribers_url":"https://api.github.com/repos/chainer/chainer/subscribers","subscription_url":"https://api.github.com/repos/chainer/chainer/subscription","commits_url":"https://api.github.com/repos/chainer/chainer/commits{/sha}","git_commits_url":"https://api.github.com/repos/chainer/chainer/git/commits{/sha}","comments_url":"https://api.github.com/repos/chainer/chainer/comments{/number}","issue_comment_url":"https://api.github.com/repos/chainer/chainer/issues/comments{/number}","contents_url":"https://api.github.com/repos/chainer/chainer/contents/{+path}","compare_url":"https://api.github.com/repos/chainer/chainer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chainer/chainer/merges","archive_url":"https://api.github.com/repos/chainer/chainer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chainer/chainer/downloads","issues_url":"https://api.github.com/repos/chainer/chainer/issues{/number}","pulls_url":"https://api.github.com/repos/chainer/chainer/pulls{/number}","milestones_url":"https://api.github.com/repos/chainer/chainer/milestones{/number}","notifications_url":"https://api.github.com/repos/chainer/chainer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chainer/chainer/labels{/name}","releases_url":"https://api.github.com/repos/chainer/chainer/releases{/id}","deployments_url":"https://api.github.com/repos/chainer/chainer/deployments","created_at":"2015-06-05T05:50:37Z","updated_at":"2018-03-12T08:42:57Z","pushed_at":"2018-03-12T10:13:25Z","git_url":"git://github.com/chainer/chainer.git","ssh_url":"git@github.com:chainer/chainer.git","clone_url":"https://github.com/chainer/chainer.git","svn_url":"https://github.com/chainer/chainer","homepage":"https://chainer.org","size":93551,"stargazers_count":3574,"watchers_count":3574,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":941,"mirror_url":null,"archived":false,"open_issues_count":207,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":941,"open_issues":207,"watchers":3574,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chainer/chainer/pulls/4457"},"html":{"href":"https://github.com/chainer/chainer/pull/4457"},"issue":{"href":"https://api.github.com/repos/chainer/chainer/issues/4457"},"comments":{"href":"https://api.github.com/repos/chainer/chainer/issues/4457/comments"},"review_comments":{"href":"https://api.github.com/repos/chainer/chainer/pulls/4457/comments"},"review_comment":{"href":"https://api.github.com/repos/chainer/chainer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chainer/chainer/pulls/4457/commits"},"statuses":{"href":"https://api.github.com/repos/chainer/chainer/statuses/48f699fd741432615988e72ea622faa77cb6bcb4"}},"author_association":"OWNER"}}
{"actor":{"display_login":"kmaehashi"}}