{"action":"created","issue":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/2180","repository_url":"https://api.github.com/repos/pytorch/pytorch","labels_url":"https://api.github.com/repos/pytorch/pytorch/issues/2180/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/2180/comments","events_url":"https://api.github.com/repos/pytorch/pytorch/issues/2180/events","html_url":"https://github.com/pytorch/pytorch/issues/2180","id":244683361,"number":2180,"title":"Discrepancy in BCEWithLogitsLoss and ClassNLLLoss","user":{"login":"shubhamjain0594","id":5080900,"avatar_url":"https://avatars2.githubusercontent.com/u/5080900?v=4","gravatar_id":"","url":"https://api.github.com/users/shubhamjain0594","html_url":"https://github.com/shubhamjain0594","followers_url":"https://api.github.com/users/shubhamjain0594/followers","following_url":"https://api.github.com/users/shubhamjain0594/following{/other_user}","gists_url":"https://api.github.com/users/shubhamjain0594/gists{/gist_id}","starred_url":"https://api.github.com/users/shubhamjain0594/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shubhamjain0594/subscriptions","organizations_url":"https://api.github.com/users/shubhamjain0594/orgs","repos_url":"https://api.github.com/users/shubhamjain0594/repos","events_url":"https://api.github.com/users/shubhamjain0594/events{/privacy}","received_events_url":"https://api.github.com/users/shubhamjain0594/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-21T14:20:43Z","updated_at":"2017-07-21T18:39:13Z","closed_at":null,"body":"In BCEWithLogitsLoss, weights are unnormalized and used, while in ClassNLLLoss weights are normalized and used. \r\n\r\nSome discussion around this can be found [here](https://github.com/pytorch/pytorch/commit/67968cb60b1d3021834594967d4140a36a8213e3#commitcomment-23155134). Is this discrepancy expected? Else if this is an issue I can send a PR to resolve this."},"comment":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/comments/317080422","html_url":"https://github.com/pytorch/pytorch/issues/2180#issuecomment-317080422","issue_url":"https://api.github.com/repos/pytorch/pytorch/issues/2180","id":317080422,"user":{"login":"soumith","id":1310570,"avatar_url":"https://avatars0.githubusercontent.com/u/1310570?v=4","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-07-21T18:39:13Z","updated_at":"2017-07-21T18:39:13Z","body":"this is not an expected discrepancy. Maybe BCEWithLogitsLoss can be fixed."}}
{"actor":{"display_login":"soumith"}}