calculates softmax likelihood and TopK indices for the raw input logits More...
Classes | |
class | SoftmaxLikelihoodCombinationOperator |
Public Types | |
typedef std::shared_ptr< Likelihood > | ptr |
Public Member Functions | |
SoftmaxLikelihood ()=default | |
LikelihoodCombinationOperator::ptr | getLikelihoodCombinationOperator () const override |
void | addToModel (nvinfer1::INetworkDefinition *network, int beamWidth, nvinfer1::ITensor *inputLogits, nvinfer1::ITensor *inputLikelihoods, nvinfer1::ITensor **newCombinedLikelihoods, nvinfer1::ITensor **newRayOptionIndices, nvinfer1::ITensor **newVocabularyIndices) override |
add calculation of likelihood and TopK indices to the network More... | |
std::string | getInfo () override |
get the textual description of the component More... | |
~SoftmaxLikelihood () override=default | |
calculates softmax likelihood and TopK indices for the raw input logits
|
inherited |
|
default |
|
overridedefault |
|
overridevirtual |
Implements nmtSample::Likelihood.
|
overridevirtual |
add calculation of likelihood and TopK indices to the network
Implements nmtSample::Likelihood.
|
overridevirtual |
get the textual description of the component
Implements nmtSample::Component.