KEMBAR78
NLLLoss: current code works with dim = 3, so I added it to dim checks by dhpollack · Pull Request #4654 · pytorch/pytorch · GitHub
Skip to content

Conversation

@dhpollack
Copy link
Contributor

The NLLLoss function would not allow dim = 3; however, the dim > 4 code works for dim = 3 as well. Thus, I added the dim = 3 to the if statement and created an additional test.

@dhpollack dhpollack changed the title current code works with dim = 3, so I added it to dim checks NLLLoss: current code works with dim = 3, so I added it to dim checks Jan 13, 2018
@apaszke
Copy link
Contributor

apaszke commented Jan 13, 2018

@pytorchbot test this please

@apaszke apaszke merged commit 05908e8 into pytorch:master Jan 13, 2018
@dhpollack dhpollack deleted the nll_loss_1d branch January 13, 2018 12:01
@soumith
Copy link
Member

soumith commented Jan 14, 2018

thank you @dhpollack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants