encodes single input into output states with LSTM More...
Public Types | |
typedef std::shared_ptr< Decoder > | ptr |
Public Member Functions | |
LSTMDecoder (ComponentWeights::ptr weights) | |
void | addToModel (nvinfer1::INetworkDefinition *network, nvinfer1::ITensor *inputEmbeddedData, nvinfer1::ITensor **inputStates, nvinfer1::ITensor **outputData, nvinfer1::ITensor **outputStates) override |
add the memory, cell, and hidden states to the network More... | |
std::vector< nvinfer1::Dims > | getStateSizes () override |
get the sizes (vector of them) of the hidden state vectors More... | |
std::string | getInfo () override |
get the textual description of the component More... | |
~LSTMDecoder () override=default | |
Protected Attributes | |
ComponentWeights::ptr | mWeights |
std::vector< nvinfer1::Weights > | mGateKernelWeights |
std::vector< nvinfer1::Weights > | mGateBiasWeights |
bool | mRNNKind |
int | mNumLayers |
int | mNumUnits |
encodes single input into output states with LSTM
|
inherited |
nmtSample::LSTMDecoder::LSTMDecoder | ( | ComponentWeights::ptr | weights | ) |
|
overridedefault |
|
overridevirtual |
add the memory, cell, and hidden states to the network
Implements nmtSample::Decoder.
|
overridevirtual |
get the sizes (vector of them) of the hidden state vectors
Implements nmtSample::Decoder.
|
overridevirtual |
get the textual description of the component
Implements nmtSample::Component.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |