16 #include <ie_parameter.hpp>
37 PortInfo(idx_t layerID): layer(layerID), port(0) {}
44 PortInfo(idx_t layerID, idx_t portID): layer(layerID), port(portID) {}
68 return layer == portInfo.
layerId() && port == portInfo.
portId();
77 return !(*
this == portInfo);
103 return input == connection.
from() && output == connection.
to();
112 return !(*
this == connection);
139 class INFERENCE_ENGINE_API_CLASS(PortData) {
144 using Ptr = std::shared_ptr<PortData>;
179 const std::map<std::string, Parameter>& getParameters() const noexcept;
189 std::map<std::
string,
Parameter> parameters;
197 class INFERENCE_ENGINE_API_CLASS(
Port) {
215 Port(
const Port& port);
220 virtual ~Port() =
default;
253 const std::map<std::string, Parameter>& getParameters()
const noexcept;
259 void setParameters(
const std::map<std::string, Parameter>& params) noexcept;
266 void setParameter(
const std::string& name,
const Parameter& param);
281 std::map<std::string, Parameter> parameters;
298 using CPtr = std::shared_ptr<const ILayer>;
303 virtual ~
ILayer() =
default;
309 virtual idx_t getId() const noexcept = 0;
315 virtual const std::
string& getName() const noexcept = 0;
321 virtual const std::
string& getType() const noexcept = 0;
327 virtual const std::map<std::
string,
Parameter>& getParameters() const noexcept = 0;
333 virtual const std::vector<
Port>& getInputPorts() const noexcept = 0;
339 virtual const std::vector<
Port>& getOutputPorts() const noexcept = 0;
344 template<
class NT,
class LT>
345 class INetworkIterator;
359 using CPtr = std::shared_ptr<const INetwork>;
386 virtual
size_t size() const noexcept = 0;
394 virtual const
ILayer::
CPtr getLayer(idx_t
id) const noexcept = 0;
400 virtual const std::vector<
ILayer::
CPtr> getInputs() const noexcept = 0;
406 virtual const std::vector<
ILayer::
CPtr> getOutputs() const noexcept = 0;
414 virtual const std::vector<
Connection> getLayerConnections(idx_t
layerId) const noexcept = 0;
420 virtual const std::
string& getName() const noexcept = 0;
426 virtual const Context& getContext() const noexcept = 0;
431 #include <details/ie_inetwork_iterator.hpp>
PortInfo(idx_t layerID)
The constructor creates a PortInfo object for port 0.
Definition: ie_network.hpp:37
bool operator==(const Connection &connection) const
Compares the given Connection with the current one.
Definition: ie_network.hpp:102
std::vector< size_t > SizeVector
Represents tensor size. The order is opposite to the order in Caffe*: (w,h,n,b) where the most freque...
Definition: ie_common.h:26
Definition: ie_argmax_layer.hpp:11
const PortInfo & from() const
Definition: ie_network.hpp:119
std::shared_ptr< const ILayer > CPtr
A shared pointer to the const ILayer object.
Definition: ie_network.hpp:298
A header file for Blob and generic TBlob<>
Connection(const PortInfo &input, const PortInfo &output)
Constructor of a connection object.
Definition: ie_network.hpp:95
std::shared_ptr< const INetwork > CPtr
A shared pointer to the constant INetwork object.
Definition: ie_network.hpp:359
PortInfo(idx_t layerID, idx_t portID)
The constructor creates a PortInfo object.
Definition: ie_network.hpp:44
bool operator!=(const PortInfo &portInfo) const
Checks if the given PortInfo object is not equal to the current one.
Definition: ie_network.hpp:76
idx_t portId() const
Get port id.
Definition: ie_network.hpp:58
This class defines Tensor description.
Definition: ie_layouts.h:143
const PortInfo & to() const
Definition: ie_network.hpp:127
idx_t layerId() const
Get layer id.
Definition: ie_network.hpp:50
std::shared_ptr< Blob > Ptr
A smart pointer containing Blob object.
Definition: ie_blob.h:38
A header file for data layouts and conversion between them.
Definition: ie_network.hpp:287
This class is the main interface to describe the Inference Engine network.
Definition: ie_network.hpp:354
This class implements a container object that represents a tensor in memory (host and remote/accelera...
Definition: ie_blob.h:33
details::INetworkIterator< const INetwork, const ILayer > const_iterator
A constant iterator for INetwork definition.
Definition: ie_network.hpp:363
std::shared_ptr< PortData > Ptr
A shared pointer to the PortData object.
Definition: ie_network.hpp:144
This class is the main interface to describe the Inference Engine layer. All methods here are constan...
Definition: ie_network.hpp:293
This class represents an object to work with different parameters.
Definition: ie_parameter.hpp:27
bool operator!=(const Connection &connection) const
Checks if the given Connection is not equal to the current one.
Definition: ie_network.hpp:111
This class is the main object to describe the Inference Engine port.
Definition: ie_network.hpp:197
bool operator==(const PortInfo &portInfo) const
Compares the given PortInfo object with the current one.
Definition: ie_network.hpp:67
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:88
This class contains a pair from layerId and port index.
Definition: ie_network.hpp:31
Definition: ie_network.hpp:139
This class holds precision value and provides precision related operations.
Definition: ie_precision.hpp:19
Definition: ie_precision.hpp:23