TensorRT  7.2.1.6
NVIDIA TensorRT
Looking for a C++ dev who knows TensorRT?
I'm looking for work. Hire me!
nmtSample::Likelihood Class Referenceabstract

calculates likelihood and TopK indices for the raw input logits More...

Inheritance diagram for nmtSample::Likelihood:
Collaboration diagram for nmtSample::Likelihood:

Public Types

typedef std::shared_ptr< Likelihoodptr
 

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...
 

Detailed Description

calculates likelihood and TopK indices for the raw input logits

Member Typedef Documentation

◆ ptr

typedef std::shared_ptr<Likelihood> nmtSample::Likelihood::ptr

Constructor & Destructor Documentation

◆ Likelihood()

nmtSample::Likelihood::Likelihood ( )
default

◆ ~Likelihood()

nmtSample::Likelihood::~Likelihood ( )
overridedefault

Member Function Documentation

◆ getLikelihoodCombinationOperator()

virtual LikelihoodCombinationOperator::ptr nmtSample::Likelihood::getLikelihoodCombinationOperator ( ) const
pure virtual

◆ addToModel()

virtual void nmtSample::Likelihood::addToModel ( nvinfer1::INetworkDefinition network,
int  beamWidth,
nvinfer1::ITensor inputLogits,
nvinfer1::ITensor inputLikelihoods,
nvinfer1::ITensor **  newCombinedLikelihoods,
nvinfer1::ITensor **  newRayOptionIndices,
nvinfer1::ITensor **  newVocabularyIndices 
)
pure virtual

add calculation of likelihood and TopK indices to the network

Implemented in nmtSample::SoftmaxLikelihood.

◆ getInfo()


The documentation for this class was generated from the following file: