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

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

#include <ie_memory_layer.hpp>

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

Public Member Functions

  MemoryLayer (const std::string &name="")
  The constructor creates a builder with the name. More...
 
  MemoryLayer (const Layer::Ptr &layer)
  The constructor creates a builder from generic builder. More...
 
  MemoryLayer (const Layer::CPtr &layer)
  The constructor creates a builder from generic builder. More...
 
MemoryLayer setName (const std::string &name)
  Sets the name for the layer. More...
 
const Port getOutputPort () const
  Returns output port. More...
 
MemoryLayer setOutputPort (const Port &port)
  Sets output port. More...
 
const Port getInputPort () const
  Returns input port. More...
 
MemoryLayer setInputPort (const Port &port)
  Sets input port. More...
 
const std::string  getId () const
  Returns memory ID. More...
 
MemoryLayer setId (const std::string &id)
  Sets memory ID. More...
 
size_t  getIndex () const
  Returns the index of memory layer. More...
 
MemoryLayer setIndex (size_t index)
  Sets the index of memory layer. More...
 
size_t  getSize () const
  Returns size of the group. More...
 
MemoryLayer setSize (size_t size)
  Sets size of the group. 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 Memory layer.

Deprecated:
Use ngraph API instead.

Constructor & Destructor Documentation

§ MemoryLayer() [1/3]

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

The constructor creates a builder with the name.

Parameters
name Layer name

§ MemoryLayer() [2/3]

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

The constructor creates a builder from generic builder.

Parameters
layer pointer to generic builder

§ MemoryLayer() [3/3]

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

The constructor creates a builder from generic builder.

Parameters
layer constant pointer to generic builder

Member Function Documentation

§ getId()

const std::string InferenceEngine::Builder::MemoryLayer::getId ( ) const

Returns memory ID.

Returns
String with memory ID

§ getIndex()

size_t InferenceEngine::Builder::MemoryLayer::getIndex ( ) const

Returns the index of memory layer.

Returns
Index

§ getInputPort()

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

Returns input port.

Returns
Input port

§ getOutputPort()

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

Returns output port.

Returns
Output port

§ getSize()

size_t InferenceEngine::Builder::MemoryLayer::getSize ( ) const

Returns size of the group.

Returns
Size of the group

§ setId()

MemoryLayer& InferenceEngine::Builder::MemoryLayer::setId ( const std::string &  id )

Sets memory ID.

Parameters
id Memory ID
Returns
reference to layer builder

§ setIndex()

MemoryLayer& InferenceEngine::Builder::MemoryLayer::setIndex ( size_t  index )

Sets the index of memory layer.

Parameters
index Index equal 0 means this layer is output one.
Returns
reference to layer builder

§ setInputPort()

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

Sets input port.

Parameters
port Input port
Returns
reference to layer builder

§ setName()

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

Sets the name for the layer.

Parameters
name Layer name
Returns
reference to layer builder

§ setOutputPort()

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

Sets output port.

Parameters
port Output port
Returns
reference to layer builder

§ setSize()

MemoryLayer& InferenceEngine::Builder::MemoryLayer::setSize ( size_t  size )

Sets size of the group.

Parameters
size Size if size equals 2 means this group is a pair (only 2 is supported).
Returns
reference to layer builder

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