Class EncoderDecoder¶
Defined in File encoder_decoder.h
Inheritance Relationships¶
Base Types¶
public marian::IEncoderDecoder
(Class IEncoderDecoder)public marian::LayerBase
(Class LayerBase)
Derived Types¶
public marian::Amun
(Class Amun)public marian::Nematus
(Class Nematus)
Class Documentation¶
-
class
EncoderDecoder
: public marian::IEncoderDecoder, public marian::LayerBase¶ Subclassed by marian::Amun, marian::Nematus
Public Functions
-
EncoderDecoder
(Ptr<ExpressionGraph> graph, Ptr<Options> options)¶
-
std::vector<Ptr<EncoderBase>> &
getEncoders
()¶
-
void
push_back
(Ptr<EncoderBase> encoder)¶
-
std::vector<Ptr<DecoderBase>> &
getDecoders
()¶
-
void
push_back
(Ptr<DecoderBase> decoder)¶
-
void
load
(Ptr<ExpressionGraph> graph, const std::vector<io::Item> &items, bool markedReloaded = true)¶
-
void
load
(Ptr<ExpressionGraph> graph, const std::string &name, bool markedReloaded = true)¶
-
void
mmap
(Ptr<ExpressionGraph> graph, const void *ptr, bool markedReloaded = true)¶
-
void
save
(Ptr<ExpressionGraph> graph, const std::string &name, bool saveTranslatorConfig = false)¶
-
void
clear
(Ptr<ExpressionGraph> graph)¶
-
virtual void
setShortlistGenerator
(Ptr<const data::ShortlistGenerator> shortlistGenerator)¶
-
virtual data::SoftAlignment
getAlignment
()¶
-
Ptr<DecoderState>
startState
(Ptr<ExpressionGraph> graph, Ptr<data::CorpusBatch> batch)¶
-
Ptr<DecoderState>
step
(Ptr<ExpressionGraph> graph, Ptr<DecoderState> state, const std::vector<IndexType> &hypIndices, const Words &words, const std::vector<IndexType> &batchIndices, int beamSize)¶
-
Ptr<DecoderState>
stepAll
(Ptr<ExpressionGraph> graph, Ptr<data::CorpusBatch> batch, bool clearGraph = true)¶
-
Logits
build
(Ptr<ExpressionGraph> graph, Ptr<data::CorpusBatch> batch, bool clearGraph = true)¶
Protected Functions
-