calculates likelihood and TopK indices for the raw input logits More...
Public Types | |
typedef std::shared_ptr< Likelihood > | ptr |
Public Member Functions | |
Likelihood ()=default | |
virtual LikelihoodCombinationOperator::ptr | getLikelihoodCombinationOperator () const =0 |
virtual void | addToModel (nvinfer1::INetworkDefinition *network, int beamWidth, nvinfer1::ITensor *inputLogits, nvinfer1::ITensor *inputLikelihoods, nvinfer1::ITensor **newCombinedLikelihoods, nvinfer1::ITensor **newRayOptionIndices, nvinfer1::ITensor **newVocabularyIndices)=0 |
add calculation of likelihood and TopK indices to the network More... | |
~Likelihood () override=default | |
virtual std::string | getInfo ()=0 |
get the textual description of the component More... | |
calculates likelihood and TopK indices for the raw input logits
typedef std::shared_ptr<Likelihood> nmtSample::Likelihood::ptr |
|
default |
|
overridedefault |
|
pure virtual |
Implemented in nmtSample::SoftmaxLikelihood.
|
pure virtual |
add calculation of likelihood and TopK indices to the network
Implemented in nmtSample::SoftmaxLikelihood.
|
pure virtualinherited |
get the textual description of the component
Implemented in nmtSample::SoftmaxLikelihood, nmtSample::BeamSearchPolicy, nmtSample::MultiplicativeAlignment, nmtSample::SLPEmbedder, nmtSample::SLPProjection, nmtSample::BLEUScoreWriter, nmtSample::Context, nmtSample::LSTMEncoder, nmtSample::TextWriter, nmtSample::SLPAttention, nmtSample::BenchmarkWriter, nmtSample::TextReader, nmtSample::LSTMDecoder, and nmtSample::LimitedSamplesDataReader.