Class EncoderPoolerRankCost

Inheritance Relationships

Base Type

Class Documentation

class EncoderPoolerRankCost : public marian::models::ICost

Public Functions

EncoderPoolerRankCost(Ptr<Options> options)
Ptr<MultiRationalLoss> apply(Ptr<IModel> model, Ptr<ExpressionGraph> graph, Ptr<data::Batch> batch, bool clearGraph = true)

Protected Attributes

Ptr<Options> options_
const bool inference_ = {false}
float margin_ = {0.3f}
float normalizer_ = {0.0f}