Public Types | Public Member Functions
InferenceEngine::PortData Class Reference

#include <ie_network.hpp>

Public Types

using Ptr = std::shared_ptr< PortData >
 A shared pointer to the PortData object.
 

Public Member Functions

 PortData ()
 Default constructor.
 
 PortData (const SizeVector &shape, const Precision &precision)
 Creates port data with precision and shape. More...
 
virtual ~PortData ()=default
 Virtual destructor.
 
const Blob::PtrgetData () const
 Returns data. More...
 
void setData (const Blob::Ptr &data)
 Sets data. More...
 
const std::map< std::string, Parameter > & getParameters () const noexcept
 Returns data parameters. More...
 
void setShape (const SizeVector &shape)
 Sets new shapes for data. More...
 

Detailed Description

Deprecated:
Use ngraph API instead. This class describes port data

Constructor & Destructor Documentation

§ PortData()

InferenceEngine::PortData::PortData ( const SizeVector shape,
const Precision precision 
)

Creates port data with precision and shape.

Parameters
shapeDimensions
precisionPrecision

Member Function Documentation

§ getData()

const Blob::Ptr& InferenceEngine::PortData::getData ( ) const

Returns data.

Returns
Blob with data

§ getParameters()

const std::map<std::string, Parameter>& InferenceEngine::PortData::getParameters ( ) const
noexcept

Returns data parameters.

Returns
Map of parameters

§ setData()

void InferenceEngine::PortData::setData ( const Blob::Ptr data)

Sets data.

Parameters
dataBlob with data

§ setShape()

void InferenceEngine::PortData::setShape ( const SizeVector shape)

Sets new shapes for data.

Parameters
shapeNew shapes

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