{"action":"created","issue":{"url":"https://api.github.com/repos/chainer/chainer/issues/5306","repository_url":"https://api.github.com/repos/chainer/chainer","labels_url":"https://api.github.com/repos/chainer/chainer/issues/5306/labels{/name}","comments_url":"https://api.github.com/repos/chainer/chainer/issues/5306/comments","events_url":"https://api.github.com/repos/chainer/chainer/issues/5306/events","html_url":"https://github.com/chainer/chainer/pull/5306","id":358308053,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0MTAyNDAy","number":5306,"title":"Introduce `utils.mixed_presision` decorator","user":{"login":"takagi","id":1224375,"node_id":"MDQ6VXNlcjEyMjQzNzU=","avatar_url":"https://avatars3.githubusercontent.com/u/1224375?v=4","gravatar_id":"","url":"https://api.github.com/users/takagi","html_url":"https://github.com/takagi","followers_url":"https://api.github.com/users/takagi/followers","following_url":"https://api.github.com/users/takagi/following{/other_user}","gists_url":"https://api.github.com/users/takagi/gists{/gist_id}","starred_url":"https://api.github.com/users/takagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takagi/subscriptions","organizations_url":"https://api.github.com/users/takagi/orgs","repos_url":"https://api.github.com/users/takagi/repos","events_url":"https://api.github.com/users/takagi/events{/privacy}","received_events_url":"https://api.github.com/users/takagi/received_events","type":"User","site_admin":false},"labels":[{"id":222603817,"node_id":"MDU6TGFiZWwyMjI2MDM4MTc=","url":"https://api.github.com/repos/chainer/chainer/labels/feature","name":"feature","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"okuta","id":7133388,"node_id":"MDQ6VXNlcjcxMzMzODg=","avatar_url":"https://avatars1.githubusercontent.com/u/7133388?v=4","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},"assignees":[{"login":"okuta","id":7133388,"node_id":"MDQ6VXNlcjcxMzMzODg=","avatar_url":"https://avatars1.githubusercontent.com/u/7133388?v=4","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}],"milestone":{"url":"https://api.github.com/repos/chainer/chainer/milestones/74","html_url":"https://github.com/chainer/chainer/milestone/74","labels_url":"https://api.github.com/repos/chainer/chainer/milestones/74/labels","id":3514746,"node_id":"MDk6TWlsZXN0b25lMzUxNDc0Ng==","number":74,"title":"v5.0.0rc1","description":"","creator":{"login":"kmaehashi","id":939877,"node_id":"MDQ6VXNlcjkzOTg3Nw==","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},"open_issues":19,"closed_issues":47,"state":"open","created_at":"2018-07-23T02:45:00Z","updated_at":"2018-09-20T07:56:47Z","due_on":"2018-09-20T07:00:00Z","closed_at":null},"comments":6,"created_at":"2018-09-08T16:11:28Z","updated_at":"2018-09-20T11:51:28Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/chainer/chainer/pulls/5306","html_url":"https://github.com/chainer/chainer/pull/5306","diff_url":"https://github.com/chainer/chainer/pull/5306.diff","patch_url":"https://github.com/chainer/chainer/pull/5306.patch"},"body":"This PR introduces `utils.mixed_presision` decorator that makes forward computation perform in FP32 for FP16 inputs, returning outputs casted back to FP16. It does nothing for FP32 and FP64 inputs.\r\n\r\n```Python\r\nclass BatchDet(function_node.FunctionNode):\r\n    ...\r\n    @utils.mixed_precision\r\n    def forward_cpu(self, x):\r\n        self.retain_inputs((0,))\r\n        self.retain_outputs((0,))\r\n        detx = utils.force_array(numpy.linalg.det(x[0]))  # numpy.linalg.det does not support FP16\r\n        return detx,\r\n    ...\r\n```"},"comment":{"url":"https://api.github.com/repos/chainer/chainer/issues/comments/423154672","html_url":"https://github.com/chainer/chainer/pull/5306#issuecomment-423154672","issue_url":"https://api.github.com/repos/chainer/chainer/issues/5306","id":423154672,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzE1NDY3Mg==","user":{"login":"toslunar","id":1964281,"node_id":"MDQ6VXNlcjE5NjQyODE=","avatar_url":"https://avatars1.githubusercontent.com/u/1964281?v=4","gravatar_id":"","url":"https://api.github.com/users/toslunar","html_url":"https://github.com/toslunar","followers_url":"https://api.github.com/users/toslunar/followers","following_url":"https://api.github.com/users/toslunar/following{/other_user}","gists_url":"https://api.github.com/users/toslunar/gists{/gist_id}","starred_url":"https://api.github.com/users/toslunar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toslunar/subscriptions","organizations_url":"https://api.github.com/users/toslunar/orgs","repos_url":"https://api.github.com/users/toslunar/repos","events_url":"https://api.github.com/users/toslunar/events{/privacy}","received_events_url":"https://api.github.com/users/toslunar/received_events","type":"User","site_admin":false},"created_at":"2018-09-20T11:51:28Z","updated_at":"2018-09-20T11:51:28Z","author_association":"MEMBER","body":"The name of the decorator could be discussed, if it'll be a public one.\r\n\r\nWithin this decorator everything is computed in float32 (or float64), but by the name `mixed_precision` a user might expect a decorator that replaces some of float16 operations inside the function by inspecting it."}}
{"actor":{"display_login":"toslunar"}}