Class DecoderState¶
Defined in File states.h
Inheritance Relationships¶
Derived Type¶
public marian::TransformerState
(Class TransformerState)
Class Documentation¶
-
class
DecoderState
¶ Subclassed by marian::TransformerState
Public Functions
-
DecoderState
(const rnn::States &states, Logits logProbs, const std::vector<Ptr<EncoderState>> &encStates, Ptr<data::CorpusBatch> batch)¶
-
virtual
~DecoderState
()¶
-
virtual const std::vector<Ptr<EncoderState>> &
getEncoderStates
() const¶
-
virtual Ptr<DecoderState>
select
(const std::vector<IndexType> &hypIndices, const std::vector<IndexType> &batchIndices, int beamSize) const¶
-
Ptr<data::CorpusBatch>
getBatch
() const¶
-
size_t
getPosition
() const¶
-
void
setPosition
(size_t position)¶
-
virtual void
blacklist
(Expr, Ptr<data::CorpusBatch>)¶
-