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...
 
RegionYoloLayer setName (const std::string &name)
  Sets the name for the layer. More...
 
const Port getInputPort () const
  Returns input port. More...
 
RegionYoloLayer setInputPort (const Port &port)
  Sets input port. More...
 
const Port getOutputPort () const
  Returns output port. More...
 
RegionYoloLayer setOutputPort (const Port &port)
  Sets output port. More...
 
int  getCoords () const
  Returns number of coordinates for each region. More...
 
RegionYoloLayer setCoords (int coords)
  Sets number of coordinates for each region. More...
 
int  getClasses () const
  Returns number of classes for each region. More...
 
RegionYoloLayer setClasses (int classes)
  Sets number of classes for each region. More...
 
int  getNum () const
  Returns number of regions. More...
 
RegionYoloLayer setNum (int num)
  Sets number of regions. More...
 
bool  getDoSoftMax () const
  Returns a flag which specifies the method of infer. More...
 
RegionYoloLayer setDoSoftMax (bool flag)
  Sets a flag which specifies the method of infer. More...
 
float  getAnchors () const
  Returns anchors coordinates of regions. More...
 
RegionYoloLayer setAnchors (float anchors)
  Sets anchors coordinates of regions. More...
 
int  getMask () const
  Returns mask. More...
 
RegionYoloLayer setMask (int mask)
  Sets mask. More...
 
size_t  getAxis () const
  Returns the number of the dimension from which flattening is performed. More...
 
RegionYoloLayer setAxis (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...
 
RegionYoloLayer setEndAxis (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...
 
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
 

Detailed Description

The class represents a builder for RegionYolo layer.

Constructor & Destructor Documentation

§ RegionYoloLayer() [1/3]

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

The constructor creates a builder with the name.

Parameters
name Layer name

§ RegionYoloLayer() [2/3]

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

The constructor creates a builder from generic builder.

Parameters
layer pointer to generic builder

§ RegionYoloLayer() [3/3]

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

The constructor creates a builder from generic builder.

Parameters
layer constant 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
anchors Anchors 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
axis Axis
Returns
reference to layer builder

§ setClasses()

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

Sets number of classes for each region.

Parameters
classes number of classes
Returns
reference to layer builder

§ setCoords()

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

Sets number of coordinates for each region.

Parameters
coords Number 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
flag softmax 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
axis End axis
Returns
reference to layer builder

§ setInputPort()

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

Sets input port.

Parameters
port Input port
Returns
reference to layer builder

§ setMask()

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

Sets mask.

Parameters
mask Specifies 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
name Layer name
Returns
reference to layer builder

§ setNum()

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

Sets number of regions.

Parameters
num Number of regions
Returns
reference to layer builder

§ setOutputPort()

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

Sets output port.

Parameters
port Output port
Returns
reference to layer builder

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