mirror of
https://github.com/facebookresearch/fairseq.git
synced 2024-09-11 17:25:31 +03:00
Summary: Pull Request resolved: https://github.com/pytorch/translate/pull/283 Pull Request resolved: https://github.com/pytorch/fairseq/pull/428 Differential Revision: D13564190 Pulled By: myleott fbshipit-source-id: 3b62282d7069c288f5bdd1dd2c120788cee4abb5
32 lines
758 B
ReStructuredText
32 lines
758 B
ReStructuredText
.. role:: hidden
|
|
:class: hidden-section
|
|
|
|
.. _Criterions:
|
|
|
|
Criterions
|
|
==========
|
|
|
|
Criterions compute the loss function given the model and batch, roughly::
|
|
|
|
loss = criterion(model, batch)
|
|
|
|
.. automodule:: fairseq.criterions
|
|
:members:
|
|
|
|
.. autoclass:: fairseq.criterions.FairseqCriterion
|
|
:members:
|
|
:undoc-members:
|
|
|
|
.. autoclass:: fairseq.criterions.adaptive_loss.AdaptiveLoss
|
|
:members:
|
|
:undoc-members:
|
|
.. autoclass:: fairseq.criterions.composite_loss.CompositeLoss
|
|
:members:
|
|
:undoc-members:
|
|
.. autoclass:: fairseq.criterions.cross_entropy.CrossEntropyCriterion
|
|
:members:
|
|
:undoc-members:
|
|
.. autoclass:: fairseq.criterions.label_smoothed_cross_entropy.LabelSmoothedCrossEntropyCriterion
|
|
:members:
|
|
:undoc-members:
|