Public Member Functions
InferenceEngine::Builder::RegionYoloLayer Class Reference

The class represents a builder for RegionYolo layer. More...

#include <ie_region_yolo_layer.hpp>

Inheritance diagram for InferenceEngine::Builder::RegionYoloLayer:
Inheritance graph
[legend]
Collaboration diagram for InferenceEngine::Builder::RegionYoloLayer:
Collaboration graph
[legend]

Public Member Functions

 RegionYoloLayer (const std::string &name="")
 The constructor creates a builder with the name. More...
 
 RegionYoloLayer (const Layer::Ptr &layer)
 The constructor creates a builder from generic builder. More...
 
 RegionYoloLayer (const Layer::CPtr &layer)
 The constructor creates a builder from generic builder. More...
 
RegionYoloLayersetName (const std::string &name)
 Sets the name for the layer. More...
 
const PortgetInputPort () const
 Returns input port. More...
 
RegionYoloLayersetInputPort (const Port &port)
 Sets input port. More...
 
const PortgetOutputPort () const
 Returns output port. More...
 
RegionYoloLayersetOutputPort (const Port &port)
 Sets output port. More...
 
int getCoords () const
 Returns number of coordinates for each region. More...
 
RegionYoloLayersetCoords (int coords)
 Sets number of coordinates for each region. More...
 
int getClasses () const
 Returns number of classes for each region. More...
 
RegionYoloLayersetClasses (int classes)
 Sets number of classes for each region. More...
 
int getNum () const
 Returns number of regions. More...
 
RegionYoloLayersetNum (int num)
 Sets number of regions. More...
 
bool getDoSoftMax () const
 Returns a flag which specifies the method of infer. More...
 
RegionYoloLayersetDoSoftMax (bool flag)
 Sets a flag which specifies the method of infer. More...
 
float getAnchors () const
 Returns anchors coordinates of regions. More...
 
RegionYoloLayersetAnchors (float anchors)
 Sets anchors coordinates of regions. More...
 
int getMask () const
 Returns mask. More...
 
RegionYoloLayersetMask (int mask)
 Sets mask. More...
 
size_t getAxis () const
 Returns the number of the dimension from which flattening is performed. More...
 
RegionYoloLayersetAxis (size_t axis)
 Sets the number of the dimension from which flattening is performed. More...
 
size_t getEndAxis () const
 Returns the number of the dimension on which flattening is ended. More...
 
RegionYoloLayersetEndAxis (size_t axis)
 Sets the number of the dimension on which flattening is ended. 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...
 
LayerDecoratoroperator= (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::PtrgetLayer ()
 
const Layer::CPtr getLayer () const
 
void checkType (const std::string &type) const
 
- Protected Attributes inherited from InferenceEngine::Builder::LayerDecorator
Layer::CPtr cLayer
 

Detailed Description

The class represents a builder for RegionYolo layer.

Deprecated:
Use ngraph API instead.

Constructor & Destructor Documentation

§ RegionYoloLayer() [1/3]

InferenceEngine::Builder::RegionYoloLayer::RegionYoloLayer ( const std::string &  name = "")
explicit

The constructor creates a builder with the name.

Parameters
nameLayer name

§ RegionYoloLayer() [2/3]

InferenceEngine::Builder::RegionYoloLayer::RegionYoloLayer ( const Layer::Ptr layer)
explicit

The constructor creates a builder from generic builder.

Parameters
layerpointer to generic builder

§ RegionYoloLayer() [3/3]

InferenceEngine::Builder::RegionYoloLayer::RegionYoloLayer ( const Layer::CPtr layer)
explicit

The constructor creates a builder from generic builder.

Parameters
layerconstant pointer to generic builder

Member Function Documentation

§ getAnchors()

float InferenceEngine::Builder::RegionYoloLayer::getAnchors ( ) const

Returns anchors coordinates of regions.

Returns
anchors coordinates

§ getAxis()

size_t InferenceEngine::Builder::RegionYoloLayer::getAxis ( ) const

Returns the number of the dimension from which flattening is performed.

Returns
Axis

§ getClasses()

int InferenceEngine::Builder::RegionYoloLayer::getClasses ( ) const

Returns number of classes for each region.

Returns
Number of classes

§ getCoords()

int InferenceEngine::Builder::RegionYoloLayer::getCoords ( ) const

Returns number of coordinates for each region.

Returns
Number of coordinates

§ getDoSoftMax()

bool InferenceEngine::Builder::RegionYoloLayer::getDoSoftMax ( ) const

Returns a flag which specifies the method of infer.

Returns
true if softmax is performed

§ getEndAxis()

size_t InferenceEngine::Builder::RegionYoloLayer::getEndAxis ( ) const

Returns the number of the dimension on which flattening is ended.

Returns
End axis

§ getInputPort()

const Port& InferenceEngine::Builder::RegionYoloLayer::getInputPort ( ) const

Returns input port.

Returns
Input port

§ getMask()

int InferenceEngine::Builder::RegionYoloLayer::getMask ( ) const

Returns mask.

Returns
Mask

§ getNum()

int InferenceEngine::Builder::RegionYoloLayer::getNum ( ) const

Returns number of regions.

Returns
Number of regions

§ getOutputPort()

const Port& InferenceEngine::Builder::RegionYoloLayer::getOutputPort ( ) const

Returns output port.

Returns
Output port

§ setAnchors()

RegionYoloLayer& InferenceEngine::Builder::RegionYoloLayer::setAnchors ( float  anchors)

Sets anchors coordinates of regions.

Parameters
anchorsAnchors coordinates
Returns
reference to layer builder

§ setAxis()

RegionYoloLayer& InferenceEngine::Builder::RegionYoloLayer::setAxis ( size_t  axis)

Sets the number of the dimension from which flattening is performed.

Parameters
axisAxis
Returns
reference to layer builder

§ setClasses()

RegionYoloLayer& InferenceEngine::Builder::RegionYoloLayer::setClasses ( int  classes)

Sets number of classes for each region.

Parameters
classesnumber of classes
Returns
reference to layer builder

§ setCoords()

RegionYoloLayer& InferenceEngine::Builder::RegionYoloLayer::setCoords ( int  coords)

Sets number of coordinates for each region.

Parameters
coordsNumber of coordinates
Returns
reference to layer builder

§ setDoSoftMax()

RegionYoloLayer& InferenceEngine::Builder::RegionYoloLayer::setDoSoftMax ( bool  flag)

Sets a flag which specifies the method of infer.

Parameters
flagsoftmax is performed if true
Returns
reference to layer builder

§ setEndAxis()

RegionYoloLayer& InferenceEngine::Builder::RegionYoloLayer::setEndAxis ( size_t  axis)

Sets the number of the dimension on which flattening is ended.

Parameters
axisEnd axis
Returns
reference to layer builder

§ setInputPort()

RegionYoloLayer& InferenceEngine::Builder::RegionYoloLayer::setInputPort ( const Port port)

Sets input port.

Parameters
portInput port
Returns
reference to layer builder

§ setMask()

RegionYoloLayer& InferenceEngine::Builder::RegionYoloLayer::setMask ( int  mask)

Sets mask.

Parameters
maskSpecifies which anchors to use
Returns
reference to layer builder

§ setName()

RegionYoloLayer& InferenceEngine::Builder::RegionYoloLayer::setName ( const std::string &  name)

Sets the name for the layer.

Parameters
nameLayer name
Returns
reference to layer builder

§ setNum()

RegionYoloLayer& InferenceEngine::Builder::RegionYoloLayer::setNum ( int  num)

Sets number of regions.

Parameters
numNumber of regions
Returns
reference to layer builder

§ setOutputPort()

RegionYoloLayer& InferenceEngine::Builder::RegionYoloLayer::setOutputPort ( const Port port)

Sets output port.

Parameters
portOutput port
Returns
reference to layer builder

The documentation for this class was generated from the following file: