Class EncoderClassifier¶
Defined in File encoder_classifier.h
Inheritance Relationships¶
Base Type¶
public marian::EncoderClassifierBase
(Class EncoderClassifierBase)
Derived Type¶
public marian::BertEncoderClassifier
(Class BertEncoderClassifier)
Class Documentation¶
-
class
EncoderClassifier
: public marian::EncoderClassifierBase¶ Subclassed by marian::BertEncoderClassifier
Public Functions
-
std::vector<Ptr<EncoderBase>> &
getEncoders
()¶
-
std::vector<Ptr<ClassifierBase>> &
getClassifiers
()¶
-
void
push_back
(Ptr<EncoderBase> encoder)¶
-
void
push_back
(Ptr<ClassifierBase> classifier)¶
-
void
load
(Ptr<ExpressionGraph> graph, const std::string &name, bool markedReloaded)¶
-
void
mmap
(Ptr<ExpressionGraph> graph, const void *ptr, bool markedReloaded)¶
-
void
save
(Ptr<ExpressionGraph> graph, const std::string &name, bool)¶
-
void
clear
(Ptr<ExpressionGraph> graph)¶
-
virtual std::vector<Ptr<ClassifierState>>
apply
(Ptr<ExpressionGraph> graph, Ptr<data::CorpusBatch> batch, bool clearGraph)¶
-
virtual Logits
build
(Ptr<ExpressionGraph> graph, Ptr<data::CorpusBatch> batch, bool clearGraph = true)¶
Protected Functions
-
std::vector<Ptr<EncoderBase>> &