{"action":"created","issue":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/1152","repository_url":"https://api.github.com/repos/pytorch/pytorch","labels_url":"https://api.github.com/repos/pytorch/pytorch/issues/1152/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/1152/comments","events_url":"https://api.github.com/repos/pytorch/pytorch/issues/1152/events","html_url":"https://github.com/pytorch/pytorch/pull/1152","id":218467708,"number":1152,"title":"Use persistent tensor to store exp_inf (part of optimizer's state)","user":{"login":"tudor-berariu","id":1908458,"avatar_url":"https://avatars2.githubusercontent.com/u/1908458?v=3","gravatar_id":"","url":"https://api.github.com/users/tudor-berariu","html_url":"https://github.com/tudor-berariu","followers_url":"https://api.github.com/users/tudor-berariu/followers","following_url":"https://api.github.com/users/tudor-berariu/following{/other_user}","gists_url":"https://api.github.com/users/tudor-berariu/gists{/gist_id}","starred_url":"https://api.github.com/users/tudor-berariu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tudor-berariu/subscriptions","organizations_url":"https://api.github.com/users/tudor-berariu/orgs","repos_url":"https://api.github.com/users/tudor-berariu/repos","events_url":"https://api.github.com/users/tudor-berariu/events{/privacy}","received_events_url":"https://api.github.com/users/tudor-berariu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-31T10:52:13Z","updated_at":"2017-03-31T14:30:36Z","closed_at":"2017-03-31T14:30:32Z","pull_request":{"url":"https://api.github.com/repos/pytorch/pytorch/pulls/1152","html_url":"https://github.com/pytorch/pytorch/pull/1152","diff_url":"https://github.com/pytorch/pytorch/pull/1152.diff","patch_url":"https://github.com/pytorch/pytorch/pull/1152.patch"},"body":"`exp_inf` in `optim.Adamax` was stored in a new tensor at each optimization step. It was the only tensor part of on optimizer state that was not persistent. This commit changes a call to `torch.max` in order to reuse the same tensor.\r\n\r\nPersistent tensors for optimizer's state are useful when they are shared among multiple processes."},"comment":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/comments/290727998","html_url":"https://github.com/pytorch/pytorch/pull/1152#issuecomment-290727998","issue_url":"https://api.github.com/repos/pytorch/pytorch/issues/1152","id":290727998,"user":{"login":"soumith","id":1310570,"avatar_url":"https://avatars3.githubusercontent.com/u/1310570?v=3","gravatar_id":"","url":"https://api.github.com/users/soumith","html_url":"https://github.com/soumith","followers_url":"https://api.github.com/users/soumith/followers","following_url":"https://api.github.com/users/soumith/following{/other_user}","gists_url":"https://api.github.com/users/soumith/gists{/gist_id}","starred_url":"https://api.github.com/users/soumith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soumith/subscriptions","organizations_url":"https://api.github.com/users/soumith/orgs","repos_url":"https://api.github.com/users/soumith/repos","events_url":"https://api.github.com/users/soumith/events{/privacy}","received_events_url":"https://api.github.com/users/soumith/received_events","type":"User","site_admin":false},"created_at":"2017-03-31T14:30:36Z","updated_at":"2017-03-31T14:30:36Z","body":"thanks!"}}
{"actor":{"display_login":"soumith"}}