Skip to content

Fix MultiLabelMarginLoss docs#3836

Merged
soumith merged 1 commit intopytorch:masterfrom
zou3519:fix-docs2
Nov 22, 2017
Merged

Fix MultiLabelMarginLoss docs#3836
soumith merged 1 commit intopytorch:masterfrom
zou3519:fix-docs2

Conversation

@zou3519
Copy link
Copy Markdown
Contributor

@zou3519 zou3519 commented Nov 22, 2017

Fixes #3796.

The following line hasn't been changed from the (lua) torch days. In pytorch tensors are now zero-indexed instead of one-indexed. I've verified that in the source code, negative values target values are ignored.

@soumith soumith merged commit b404cfe into pytorch:master Nov 22, 2017
@zou3519 zou3519 deleted the fix-docs2 branch January 3, 2018 19:59
@soumith soumith added the 0.3.1 label Feb 4, 2018
soumith pushed a commit that referenced this pull request Feb 7, 2018
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants