Struct IEmbeddingLayer

Inheritance Relationships

Derived Types

Struct Documentation

struct IEmbeddingLayer

Embedding from corpus sub-batch to (emb, mask).

Subclassed by marian::Embedding, marian::ULREmbedding

Public Functions

virtual std::tuple<Expr, Expr> apply(Ptr<data::SubBatch> subBatch) const = 0
virtual Expr apply(const Words &embIdx, const Shape &shape) const = 0
virtual Expr applyIndices(const std::vector<WordIndex> &embIdx, const Shape &shape) const = 0
virtual ~IEmbeddingLayer()