The class represents a builder for GRUSequence layer. More...
#include <ie_gru_sequence_layer.hpp>
Public Member Functions | |
GRUSequenceLayer (const std::string &name="") | |
The constructor creates a builder with the name. More... | |
GRUSequenceLayer (const Layer::Ptr &layer) | |
The constructor creates a builder from generic builder. More... | |
GRUSequenceLayer (const Layer::CPtr &layer) | |
The constructor creates a builder from generic builder. More... | |
GRUSequenceLayer & | 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... | |
GRUSequenceLayer & | 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... | |
GRUSequenceLayer & | setOutputPorts (const std::vector< Port > &ports) |
Sets output ports for the layer. More... | |
int | getHiddenSize () const |
GRUSequenceLayer & | setHiddenSize (int size) |
bool | getSequenceDim () const |
GRUSequenceLayer & | setSqquenceDim (bool flag) |
const std::vector< std::string > & | getActivations () const |
GRUSequenceLayer & | setActivations (const std::vector< std::string > &activations) |
const std::vector< float > & | getActivationsAlpha () const |
GRUSequenceLayer & | setActivationsAlpha (const std::vector< float > &activations) |
const std::vector< float > & | getActivationsBeta () const |
GRUSequenceLayer & | setActivationsBeta (const std::vector< float > &activations) |
float | getClip () const |
GRUSequenceLayer & | setClip (float clip) |
bool | getLinearBeforeReset () const |
GRUSequenceLayer & | setLinearBeforeReset (bool flag) |
const std::string & | getDirection () const |
GRUSequenceLayer & | 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 GRUSequence 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::GRUSequenceLayer::getInputPorts | ( | ) | const |
Returns input ports with shapes for the layer.
const std::vector<Port>& InferenceEngine::Builder::GRUSequenceLayer::getOutputPorts | ( | ) | const |
Returns output ports with shapes for the layer.
GRUSequenceLayer& InferenceEngine::Builder::GRUSequenceLayer::setInputPorts | ( | const std::vector< Port > & | ports | ) |
Sets input ports for the layer.
ports | vector of input ports |
GRUSequenceLayer& InferenceEngine::Builder::GRUSequenceLayer::setName | ( | const std::string & | name | ) |
GRUSequenceLayer& InferenceEngine::Builder::GRUSequenceLayer::setOutputPorts | ( | const std::vector< Port > & | ports | ) |
Sets output ports for the layer.
ports | vector of output ports |