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

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

#include <ie_crop_layer.hpp>

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

Public Member Functions

 CropLayer (const std::string &name="")
 The constructor creates a builder with the name. More...
 
 CropLayer (const Layer::Ptr &layer)
 The constructor creates a builder from generic builder. More...
 
 CropLayer (const Layer::CPtr &layer)
 The constructor creates a builder from generic builder. More...
 
CropLayersetName (const std::string &name)
 Sets the name for the layer. More...
 
const std::vector< Port > & getInputPorts () const
 Returns input ports. More...
 
CropLayersetInputPorts (const std::vector< Port > &ports)
 Sets input ports. More...
 
const PortgetOutputPort () const
 Return output port. More...
 
CropLayersetOutputPort (const Port &port)
 Sets output port. More...
 
const std::vector< size_t > getAxis () const
 Returns axis. More...
 
CropLayersetAxis (const std::vector< size_t > &axis)
 Sets axis. More...
 
const std::vector< size_t > getOffset () const
 Returns offsets. More...
 
CropLayersetOffset (const std::vector< size_t > &offsets)
 Sets offsets. 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 Crop layer.

Deprecated:
Use ngraph API instead.

Constructor & Destructor Documentation

§ CropLayer() [1/3]

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

The constructor creates a builder with the name.

Parameters
nameLayer name

§ CropLayer() [2/3]

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

The constructor creates a builder from generic builder.

Parameters
layerpointer to generic builder

§ CropLayer() [3/3]

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

The constructor creates a builder from generic builder.

Parameters
layerconstant pointer to generic builder

Member Function Documentation

§ getAxis()

const std::vector<size_t> InferenceEngine::Builder::CropLayer::getAxis ( ) const

Returns axis.

Returns
Vector of axis

§ getInputPorts()

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

Returns input ports.

Returns
Vector of input ports

§ getOffset()

const std::vector<size_t> InferenceEngine::Builder::CropLayer::getOffset ( ) const

Returns offsets.

Returns
Vector of offsets

§ getOutputPort()

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

Return output port.

Returns
Output port

§ setAxis()

CropLayer& InferenceEngine::Builder::CropLayer::setAxis ( const std::vector< size_t > &  axis)

Sets axis.

Parameters
axisVector of axis
Returns
reference to layer builder

§ setInputPorts()

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

Sets input ports.

Parameters
portVector of input ports
Returns
reference to layer builder

§ setName()

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

Sets the name for the layer.

Parameters
nameLayer name
Returns
reference to layer builder

§ setOffset()

CropLayer& InferenceEngine::Builder::CropLayer::setOffset ( const std::vector< size_t > &  offsets)

Sets offsets.

Parameters
offsetsVector of offsets
Returns
reference to layer builder

§ setOutputPort()

CropLayer& InferenceEngine::Builder::CropLayer::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: