Class Logits¶
Defined in File logits.h
Nested Relationships¶
Nested Types¶
Class Documentation¶
-
class
Logits
¶ Public Functions
-
Logits
()¶
-
Logits
(Ptr<RationalLoss> logits)¶
-
Logits
(std::vector<Ptr<RationalLoss>> &&logits, Ptr<FactoredVocab> embeddingFactorMapping)¶
-
Expr
getFactoredLogits
(size_t groupIndex, Ptr<data::Shortlist> shortlist = nullptr, const std::vector<IndexType> &hypIndices = {}, size_t beamSize = 0) const¶
-
Logits
applyUnaryFunctions
(const std::function<Expr(Expr)> &f1, const std::function<Expr(Expr)> &fother) const¶
-
std::vector<Logits::MaskedFactorIndices>
factorizeWords
(const Words &words) const¶
-
Tensor
getFactoredLogitsTensor
(size_t factorGroup) const¶
-
size_t
getNumFactorGroups
() const¶
-
bool
empty
() const¶
-