Linear logits calculation. More...
Public Types | |
typedef std::shared_ptr< Projection > | ptr |
Public Member Functions | |
SLPProjection (ComponentWeights::ptr weights) | |
void | addToModel (nvinfer1::INetworkDefinition *network, nvinfer1::ITensor *input, nvinfer1::ITensor **outputLogits) override |
add raw logits to the network More... | |
int | getOutputSize () override |
get the size of raw logits vector More... | |
std::string | getInfo () override |
get the textual description of the component More... | |
~SLPProjection () override=default | |
Protected Attributes | |
ComponentWeights::ptr | mWeights |
nvinfer1::Weights | mKernelWeights |
int | mInputChannelCount |
int | mOutputChannelCount |
std::vector< float > | mResizedKernelWeights |
Linear logits calculation.
Calculates logits vector by multiplying input vector with weight matrix
|
inherited |
nmtSample::SLPProjection::SLPProjection | ( | ComponentWeights::ptr | weights | ) |
|
overridedefault |
|
overridevirtual |
add raw logits to the network
Implements nmtSample::Projection.
|
overridevirtual |
get the size of raw logits vector
Implements nmtSample::Projection.
|
overridevirtual |
get the textual description of the component
Implements nmtSample::Component.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |