Class SlicePooler

Inheritance Relationships

Base Type

Class Documentation

class SlicePooler : public marian::PoolerBase

Pool encoder state (contextual word embeddings) by selecting 1st embedding along sentence-length dimension.

Public Functions

SlicePooler(Ptr<ExpressionGraph> graph, Ptr<Options> options)
std::vector<Expr> apply(Ptr<ExpressionGraph> graph, Ptr<data::CorpusBatch> batch, const std::vector<Ptr<EncoderState>> &encoderStates)
void clear()