The class represents a builder for Norm layer. More...
#include <ie_norm_layer.hpp>
Public Types | |
enum | NormType { WITHIN_CHANNEL = 0, ACROSS_CHANNELS = 1 } |
The enum defines all Norm types. | |
Public Member Functions | |
NormLayer (const std::string &name="") | |
The constructor creates a builder with the name. More... | |
NormLayer (const Layer::Ptr &layer) | |
The constructor creates a builder from generic builder. More... | |
NormLayer (const Layer::CPtr &layer) | |
The constructor creates a builder from generic builder. More... | |
NormLayer & | setName (const std::string &name) |
Sets the name for the layer. More... | |
const Port & | getPort () const |
Returns port with shapes for the layer. More... | |
NormLayer & | setPort (const Port &port) |
Sets port shapes for the layer. More... | |
size_t | getSize () const |
Returns side length of the region. More... | |
NormLayer & | setSize (size_t size) |
Sets side length of the region. More... | |
float | getAlpha () const |
Returns scaling parameter for the normalizing sum. More... | |
NormLayer & | setAlpha (float alpha) |
Sets scaling parameter for the normalizing sum. More... | |
float | getBeta () const |
Returns exponent for the normalizing sum. More... | |
NormLayer & | setBeta (float beta) |
Sets exponent for the normalizing sum. More... | |
bool | getAcrossMaps () const |
Returns region type. More... | |
NormLayer & | setAcrossMaps (bool acrossMap) |
Sets region type. More... | |
NormType | getRegion () const |
Returns region type. More... | |
NormLayer & | setRegion (NormType type) |
Sets region type. More... | |
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 Norm 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 |
bool InferenceEngine::Builder::NormLayer::getAcrossMaps | ( | ) | const |
Returns region type.
float InferenceEngine::Builder::NormLayer::getAlpha | ( | ) | const |
Returns scaling parameter for the normalizing sum.
float InferenceEngine::Builder::NormLayer::getBeta | ( | ) | const |
Returns exponent for the normalizing sum.
const Port& InferenceEngine::Builder::NormLayer::getPort | ( | ) | const |
Returns port with shapes for the layer.
NormType InferenceEngine::Builder::NormLayer::getRegion | ( | ) | const |
Returns region type.
size_t InferenceEngine::Builder::NormLayer::getSize | ( | ) | const |
Returns side length of the region.
NormLayer& InferenceEngine::Builder::NormLayer::setAcrossMaps | ( | bool | acrossMap | ) |
Sets region type.
acrossMap | true if normalizing sum is performed over adjacent channels |
NormLayer& InferenceEngine::Builder::NormLayer::setAlpha | ( | float | alpha | ) |
Sets scaling parameter for the normalizing sum.
alpha | Scaling parameter |
NormLayer& InferenceEngine::Builder::NormLayer::setBeta | ( | float | beta | ) |
Sets exponent for the normalizing sum.
beta | Exponent |
NormLayer& InferenceEngine::Builder::NormLayer::setName | ( | const std::string & | name | ) |
Sets region type.
type | region type |
NormLayer& InferenceEngine::Builder::NormLayer::setSize | ( | size_t | size | ) |
Sets side length of the region.
size | Size |