Improving docs for MultiLabelSoftMarginLoss (#16644)
authorJames Malcolm <jcallinicos@gmail.com>
Fri, 1 Feb 2019 06:02:35 +0000 (22:02 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 1 Feb 2019 06:07:14 +0000 (22:07 -0800)
commitb0e692c8a66ed9cb174df12aa1ff747e8b7c8495
tree8f65ea600ea41c42ef59c7957094aaa3e1e300b3
parent536f647bae7eaa0ab1091808084ed2c24a8dabb4
Improving docs for MultiLabelSoftMarginLoss (#16644)

Summary:
Resolves #15863

Changed the documentation for MultiLabelSoftMarginLoss and MultiLabelMarginLoss to be more explicit about the `target` format.

More than happy to change the messaging based on discussion.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16644

Differential Revision: D13912395

Pulled By: soumith

fbshipit-source-id: 24a3c214c5f6f9d043e25b13ac758c1c1211b641
torch/nn/modules/loss.py