Skip to content

Commit 8bf57b5

Browse files
mikaylagawareckipytorchmergebot
authored andcommitted
Fix more backticks
1 parent f3038b3 commit 8bf57b5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

torch/nn/modules/loss.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,14 +1319,14 @@ class probabilities only when a single class label per minibatch item is too res
13191319
13201320
.. note::
13211321
When ``target`` contains class probabilities, it should consist of soft labels—that is,
1322-
each `target` entry should represent a probability distribution over the possible classes for a given data sample,
1323-
with individual probabilities between `[0,1]` and the total distribution summing to 1.
1322+
each ``target`` entry should represent a probability distribution over the possible classes for a given data sample,
1323+
with individual probabilities between ``[0,1]`` and the total distribution summing to 1.
13241324
This is why the :func:`softmax()` function is applied to the ``target`` in the class probabilities example above.
13251325
1326-
PyTorch does not validate whether the values provided in `target` lie in the range `[0,1]`
1327-
or whether the distribution of each data sample sums to `1`.
1326+
PyTorch does not validate whether the values provided in ``target`` lie in the range ``[0,1]``
1327+
or whether the distribution of each data sample sums to ``1``.
13281328
No warning will be raised and it is the user's responsibility
1329-
to ensure that `target` contains valid probability distributions.
1329+
to ensure that ``target`` contains valid probability distributions.
13301330
Providing arbitrary values may yield misleading loss values and unstable gradients during training.
13311331
13321332
Examples:

0 commit comments

Comments
 (0)