This class is the main object to describe the Inference Engine port.
More...
#include <ie_network.hpp>
This class is the main object to describe the Inference Engine port.
- Deprecated:
- Use ngraph API instead.
§ Port() [1/2]
Constructor of a port object with shapes.
- Parameters
-
shapes | port shapes |
precision | Port precision |
§ Port() [2/2]
InferenceEngine::Port::Port |
( |
const Port & |
port | ) |
|
Copy constructor.
- Parameters
-
§ getData()
Returns port data.
- Returns
- Port data
§ getParameters()
const std::map<std::string, Parameter>& InferenceEngine::Port::getParameters |
( |
| ) |
const |
|
noexcept |
Returns a constant reference to parameters.
- Returns
- Map with parameters
§ operator!=()
bool InferenceEngine::Port::operator!= |
( |
const Port & |
rhs | ) |
const |
Compares the given Port with the current one.
- Parameters
-
- Returns
- true if the given Port is NOT equal to the current one, false - otherwise
§ operator==()
bool InferenceEngine::Port::operator== |
( |
const Port & |
rhs | ) |
const |
Compares the given Port with the current one.
- Parameters
-
- Returns
- true if the given Port is equal to the current one, false - otherwise
§ setData()
void InferenceEngine::Port::setData |
( |
const PortData::Ptr & |
data | ) |
|
Sets new port data for current port.
- Parameters
-
§ setParameter()
void InferenceEngine::Port::setParameter |
( |
const std::string & |
name, |
|
|
const Parameter & |
param |
|
) |
| |
Sets the new parameter for current port.
- Parameters
-
name | Name of parameter |
param | New value |
§ setParameters()
void InferenceEngine::Port::setParameters |
( |
const std::map< std::string, Parameter > & |
params | ) |
|
|
noexcept |
Sets new parameters for current port.
- Parameters
-
§ setShape()
void InferenceEngine::Port::setShape |
( |
const SizeVector & |
shape | ) |
|
Sets new shapes for current port.
- Parameters
-
§ shape()
const SizeVector& InferenceEngine::Port::shape |
( |
| ) |
const |
|
noexcept |
Returns a constant reference to a vector with shapes.
Shapes should be initialized if shape is empty.
- Returns
- constant reference to shapes
The documentation for this class was generated from the following file: