The class represents a builder for LSTMSequence layer. More...
#include <ie_lstm_sequence_layer.hpp>
Public Member Functions | |
LSTMSequenceLayer (const std::string &name="") | |
The constructor creates a builder with the name. More... | |
LSTMSequenceLayer (const Layer::Ptr &layer) | |
The constructor creates a builder from generic builder. More... | |
LSTMSequenceLayer (const Layer::CPtr &layer) | |
The constructor creates a builder from generic builder. More... | |
LSTMSequenceLayer & | setName (const std::string &name) |
Sets the name for the layer. More... | |
const std::vector< Port > & | getInputPorts () const |
Returns input ports with shapes for the layer. More... | |
LSTMSequenceLayer & | setInputPorts (const std::vector< Port > &ports) |
Sets input ports for the layer. More... | |
const std::vector< Port > & | getOutputPorts () const |
Returns output ports with shapes for the layer. More... | |
LSTMSequenceLayer & | setOutputPorts (const std::vector< Port > &ports) |
Sets output ports for the layer. More... | |
int | getHiddenSize () const |
LSTMSequenceLayer & | setHiddenSize (int size) |
bool | getSequenceDim () const |
LSTMSequenceLayer & | setSqquenceDim (bool flag) |
const std::vector< std::string > & | getActivations () const |
LSTMSequenceLayer & | setActivations (const std::vector< std::string > &activations) |
const std::vector< float > & | getActivationsAlpha () const |
LSTMSequenceLayer & | setActivationsAlpha (const std::vector< float > &activations) |
const std::vector< float > & | getActivationsBeta () const |
LSTMSequenceLayer & | setActivationsBeta (const std::vector< float > &activations) |
float | getClip () const |
LSTMSequenceLayer & | setClip (float clip) |
bool | getInputForget () const |
LSTMSequenceLayer & | setInputForget (bool flag) |
const std::string & | getDirection () const |
LSTMSequenceLayer & | setDirection (const std::string &direction) |
Public Member Functions inherited from InferenceEngine::Builder::LayerDecorator | |
LayerDecorator (const std::string &type, const std::string &name) | |
The constructor creates layer builders with layer type and layer name. More... | |
LayerDecorator (const Layer::Ptr &layer) | |
The constructor creates layer builders from reference to generic layer builder. More... | |
LayerDecorator (const Layer::CPtr &layer) | |
The constructor creates layer builders from reference to generic layer builder. More... | |
LayerDecorator (const LayerDecorator &rval) | |
The copy constructor. More... | |
LayerDecorator & | operator= (const LayerDecorator &rval) |
Copy operator for LayerDecorator. More... | |
virtual | ~LayerDecorator ()=default |
Virtual destructor. | |
virtual | operator Layer () const |
The operator creates generic builder. More... | |
virtual | operator Layer::Ptr () |
The operator creates generic builder. More... | |
virtual | operator Layer::CPtr () const |
The operator creates generic builder. More... | |
const std::string & | getType () const |
Returns layer type. More... | |
const std::string & | getName () const |
Returns layer name. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from InferenceEngine::Builder::LayerDecorator | |
Layer::Ptr & | getLayer () |
const Layer::CPtr | getLayer () const |
void | checkType (const std::string &type) const |
Protected Attributes inherited from InferenceEngine::Builder::LayerDecorator | |
Layer::CPtr | cLayer |
The class represents a builder for LSTMSequence layer.
|
explicit |
The constructor creates a builder with the name.
name | Layer name |
|
explicit |
The constructor creates a builder from generic builder.
layer | pointer to generic builder |
|
explicit |
The constructor creates a builder from generic builder.
layer | constant pointer to generic builder |
const std::vector<Port>& InferenceEngine::Builder::LSTMSequenceLayer::getInputPorts | ( | ) | const |
Returns input ports with shapes for the layer.
const std::vector<Port>& InferenceEngine::Builder::LSTMSequenceLayer::getOutputPorts | ( | ) | const |
Returns output ports with shapes for the layer.
LSTMSequenceLayer& InferenceEngine::Builder::LSTMSequenceLayer::setInputPorts | ( | const std::vector< Port > & | ports | ) |
Sets input ports for the layer.
ports | vector of input ports |
LSTMSequenceLayer& InferenceEngine::Builder::LSTMSequenceLayer::setName | ( | const std::string & | name | ) |
LSTMSequenceLayer& InferenceEngine::Builder::LSTMSequenceLayer::setOutputPorts | ( | const std::vector< Port > & | ports | ) |
Sets output ports for the layer.
ports | vector of output ports |