Class GlobalAttention

Inheritance Relationships

Base Type

Class Documentation

class GlobalAttention : public marian::rnn::CellInput

Public Functions

GlobalAttention(Ptr<ExpressionGraph> graph, Ptr<Options> options, Ptr<EncoderState> encState)
Expr apply(State state)
std::vector<Expr> &getContexts()
Expr getContext()
std::vector<Expr> &getAlignments()
virtual void clear()
int dimOutput()