Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NLLLoss: current code works with dim = 3, so I added it to dim checks#4654

Merged
apaszke merged 1 commit into
pytorch:masterfrom
dhpollack:nll_loss_1d
Jan 13, 2018
Merged

NLLLoss: current code works with dim = 3, so I added it to dim checks#4654
apaszke merged 1 commit into
pytorch:masterfrom
dhpollack:nll_loss_1d

Conversation

@dhpollack
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator

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