35 class INFERENCE_ENGINE_NN_BUILDER_API_CLASS(PortInfo) {
70 IE_SUPPRESS_DEPRECATED_START
79 return layer == portInfo.
layerId() && port == portInfo.
portId();
89 return !(*
this == portInfo);
92 IE_SUPPRESS_DEPRECATED_END
105 IE_SUPPRESS_DEPRECATED_START
122 return input == connection.
from() && output == connection.
to();
132 return !(*
this == connection);
155 IE_SUPPRESS_DEPRECATED_END
162 class INFERENCE_ENGINE_NN_BUILDER_API_CLASS(PortData) {
164 IE_SUPPRESS_DEPRECATED_START
169 using Ptr = std::shared_ptr<PortData>;
171 IE_SUPPRESS_DEPRECATED_END
210 const std::map<std::string, Parameter>& getParameters() const noexcept;
221 std::map<std::
string,
Parameter> parameters;
230 class INFERENCE_ENGINE_NN_BUILDER_API_CLASS(
Port) {
248 virtual ~Port() =
default;
250 IE_SUPPRESS_DEPRECATED_START
256 Port(
const Port& port);
264 bool operator==(
const Port& rhs)
const;
272 bool operator!=(
const Port& rhs)
const;
274 IE_SUPPRESS_DEPRECATED_END
296 const std::map<std::string, Parameter>& getParameters()
const noexcept;
303 void setParameters(
const std::map<std::string, Parameter>&
params) noexcept;
311 void setParameter(
const std::string&
name,
const Parameter& param);
313 IE_SUPPRESS_DEPRECATED_START
330 std::map<std::string, Parameter> parameters;
333 IE_SUPPRESS_DEPRECATED_END
346 class INFERENCE_ENGINE_NN_BUILDER_DEPRECATED
ILayer {
348 IE_SUPPRESS_DEPRECATED_START
353 using CPtr = std::shared_ptr<const ILayer>;
355 IE_SUPPRESS_DEPRECATED_END
360 virtual ~
ILayer() =
default;
367 virtual idx_t getId() const noexcept = 0;
374 virtual const std::
string& getName() const noexcept = 0;
380 virtual const std::
string& getType() const noexcept = 0;
387 virtual const std::map<std::
string,
Parameter>& getParameters() const noexcept = 0;
389 IE_SUPPRESS_DEPRECATED_START
396 virtual const std::vector<
Port>& getInputPorts() const noexcept = 0;
403 virtual const std::vector<
Port>& getOutputPorts() const noexcept = 0;
405 IE_SUPPRESS_DEPRECATED_END
410 template <
class NT,
class LT>
411 class INFERENCE_ENGINE_NN_BUILDER_DEPRECATED INetworkIterator;
421 class INFERENCE_ENGINE_NN_BUILDER_DEPRECATED
INetwork {
423 IE_SUPPRESS_DEPRECATED_START
428 using CPtr = std::shared_ptr<const INetwork>;
434 IE_SUPPRESS_DEPRECATED_END
460 virtual
size_t size() const noexcept = 0;
462 IE_SUPPRESS_DEPRECATED_START
479 virtual const std::vector<
ILayer::
CPtr> getInputs() const noexcept = 0;
486 virtual const std::vector<
ILayer::
CPtr> getOutputs() const noexcept = 0;
496 virtual const std::vector<
Connection> getLayerConnections(
idx_t layerId) const noexcept = 0;
503 virtual const
Context& getContext() const noexcept = 0;
505 IE_SUPPRESS_DEPRECATED_END
511 virtual const std::
string& getName() const noexcept = 0;
516 #include <details/ie_inetwork_iterator.hpp> PortInfo(idx_t layerID)
The constructor creates a PortInfo object for port 0.
Definition: ie_network.hpp:42
bool operator==(const Connection &connection) const
Compares the given Connection with the current one.
Definition: ie_network.hpp:121
Inference Engine API.
Definition: ie_argmax_layer.hpp:15
const PortInfo & from() const
Definition: ie_network.hpp:139
std::string name
Layer name.
Definition: ie_layers.h:42
std::vector< int > shape
A vector of sizes of the shape.
Definition: ie_layers.h:1035
This class implements object.
Definition: ie_context.hpp:25
std::shared_ptr< const ILayer > CPtr
A shared pointer to the const ILayer object.
Definition: ie_network.hpp:353
A header file for Blob and generic TBlob<>
Connection(const PortInfo &input, const PortInfo &output)
Constructor of a connection object.
Definition: ie_network.hpp:113
std::shared_ptr< const INetwork > CPtr
A shared pointer to the constant INetwork object.
Definition: ie_network.hpp:428
PortInfo(idx_t layerID, idx_t portID)
The constructor creates a PortInfo object.
Definition: ie_network.hpp:50
bool operator!=(const PortInfo &portInfo) const
Checks if the given PortInfo object is not equal to the current one.
Definition: ie_network.hpp:88
idx_t portId() const
Get port id.
Definition: ie_network.hpp:66
This class defines Tensor description.
Definition: ie_layouts.h:153
const PortInfo & to() const
Definition: ie_network.hpp:147
idx_t layerId() const
Get layer id.
Definition: ie_network.hpp:57
std::shared_ptr< Blob > Ptr
A smart pointer containing Blob object.
Definition: ie_blob.h:42
A header file for data layouts and conversion between them.
Definition: ie_network.hpp:338
size_t idx_t
A type of network objects indexes.
Definition: ie_network.hpp:29
A header file for the Parameter class.
This class is the main interface to describe the Inference Engine network.
Definition: ie_network.hpp:421
This class represents a universal container in the Inference Engine.
Definition: ie_blob.h:37
std::map< std::string, std::string > params
Map of pairs: (parameter name, parameter value)
Definition: ie_layers.h:367
details::INetworkIterator< const INetwork, const ILayer > const_iterator
A constant iterator for INetwork definition.
Definition: ie_network.hpp:432
std::shared_ptr< PortData > Ptr
A shared pointer to the PortData object.
Definition: ie_network.hpp:169
This class is the main interface to describe the Inference Engine layer.
Definition: ie_network.hpp:346
This class represents an object to work with different parameters.
Definition: ie_parameter.hpp:37
bool operator!=(const Connection &connection) const
Checks if the given Connection is not equal to the current one.
Definition: ie_network.hpp:131
This class is the main object to describe the Inference Engine port.
Definition: ie_network.hpp:230
bool operator==(const PortInfo &portInfo) const
Compares the given PortInfo object with the current one.
Definition: ie_network.hpp:78
Precision precision
Layer precision.
Definition: ie_layers.h:52
std::vector< size_t > SizeVector
Represents tensor size.
Definition: ie_common.h:29
This is a header file for the IE Context class.
This class is the main object to describe the Inference Engine connection.
Definition: ie_network.hpp:103
This class contains a pair from layerId and port index.
Definition: ie_network.hpp:35
Definition: ie_network.hpp:162
This class holds precision value and provides precision related operations.
Definition: ie_precision.hpp:22
Definition: ie_precision.hpp:26