Defined in File bert.h
public marian::EncoderTransformer(Class EncoderTransformer)
BertEncoder: public marian::EncoderTransformer¶
BERT-specific modifications to EncoderTransformer Actually all that is needed is to intercept the creation of special embeddings, here sentence embeddings for sentence A and B.
@BUGBUG: transformer.h was meant to be compiled separately. I.e., one cannot derive from it. Is there a way to maybe instead include a reference in here, instead of deriving from it?