Public Types | Public Member Functions
InferenceEngine::Builder::EltwiseLayer Class Reference

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

#include <ie_eltwise_layer.hpp>

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

Public Types

enum  EltwiseType {
  SUM = 1, MAX, MUL, SUB,
  DIV, MIN, SQUARED_DIFF
}
 The enum defines all Eltwise types.
 

Public Member Functions

 EltwiseLayer (const std::string &name="")
 The constructor creates a builder with the name. More...
 
 EltwiseLayer (const Layer::Ptr &layer)
 The constructor creates a builder from generic builder. More...
 
 EltwiseLayer (const Layer::CPtr &layer)
 The constructor creates a builder from generic builder. More...
 
EltwiseLayersetName (const std::string &name)
 Sets the name for the layer. More...
 
const std::vector< Port > & getInputPorts () const
 Returns input ports. More...
 
EltwiseLayersetInputPorts (const std::vector< Port > &ports)
 Sets input ports. More...
 
const PortgetOutputPort () const
 Returns output port. More...
 
EltwiseLayersetOutputPort (const Port &port)
 Sets output port. More...
 
EltwiseType getEltwiseType () const
 Returns eltwise type. More...
 
EltwiseLayersetEltwiseType (EltwiseType type)
 Sets eltwise type. More...
 
const std::vector< float > getScales () const
 Returns eltwise scales. More...
 
EltwiseLayersetScales (const std::vector< float > &scales)
 Sets eltwise scales. 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 Eltwise layer.

Deprecated:
Use ngraph API instead.

Constructor & Destructor Documentation

§ EltwiseLayer() [1/3]

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

The constructor creates a builder with the name.

Parameters
nameLayer name

§ EltwiseLayer() [2/3]

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

The constructor creates a builder from generic builder.

Parameters
layerpointer to generic builder

§ EltwiseLayer() [3/3]

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

The constructor creates a builder from generic builder.

Parameters
layerconstant pointer to generic builder

Member Function Documentation

§ getEltwiseType()

EltwiseType InferenceEngine::Builder::EltwiseLayer::getEltwiseType ( ) const

Returns eltwise type.

Returns
Eltwise type

§ getInputPorts()

const std::vector<Port>& InferenceEngine::Builder::EltwiseLayer::getInputPorts ( ) const

Returns input ports.

Returns
Vector of input ports

§ getOutputPort()

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

Returns output port.

Returns
Output port

§ getScales()

const std::vector<float> InferenceEngine::Builder::EltwiseLayer::getScales ( ) const

Returns eltwise scales.

Returns
Vector of scales

§ setEltwiseType()

EltwiseLayer& InferenceEngine::Builder::EltwiseLayer::setEltwiseType ( EltwiseType  type)

Sets eltwise type.

Parameters
typeEltwise type
Returns
reference to layer builder

§ setInputPorts()

EltwiseLayer& InferenceEngine::Builder::EltwiseLayer::setInputPorts ( const std::vector< Port > &  ports)

Sets input ports.

Parameters
portsVector of input ports
Returns
reference to layer builder

§ setName()

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

Sets the name for the layer.

Parameters
nameLayer name
Returns
reference to layer builder

§ setOutputPort()

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

Sets output port.

Parameters
portOutput port
Returns
reference to layer builder

§ setScales()

EltwiseLayer& InferenceEngine::Builder::EltwiseLayer::setScales ( const std::vector< float > &  scales)

Sets eltwise scales.

Parameters
scalesVector of scales
Returns
reference to layer builder

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