16 #include <ie_parameter.hpp>
68 return layer == portInfo.
layerId() && port == portInfo.
portId();
77 return !(*
this == portInfo);
103 return input == connection.
from() && output == connection.
to();
112 return !(*
this == connection);
156 this->pShapes = port.pShapes;
190 using Ptr = std::shared_ptr<IParameters>;
201 virtual const std::map<std::string, Parameter>& getParameters() const noexcept = 0;
207 virtual const std::map<std::
string,
Blob::CPtr>& getConstantData() const noexcept = 0;
223 using Ptr = std::shared_ptr<ILayer>;
227 using CPtr = std::shared_ptr<const ILayer>;
232 virtual ~ILayer() =
default;
238 virtual idx_t getId() const noexcept = 0;
244 virtual const std::
string& getName() const noexcept = 0;
250 virtual const std::
string& getType() const noexcept = 0;
256 virtual const std::shared_ptr<INetwork>& getGraph() const noexcept = 0;
262 virtual const
IParameters::
Ptr& getParameters() const noexcept = 0;
268 virtual const std::vector<
Port>& getInputPorts() const noexcept = 0;
274 virtual const std::vector<
Port>& getOutputPorts() const noexcept = 0;
279 template<
class NT,
class LT>
280 class INetworkIterator;
294 using Ptr = std::shared_ptr<INetwork>;
303 virtual ~INetwork() =
default;
321 virtual
size_t size() const noexcept = 0;
329 virtual const ILayer::
Ptr getLayer(
idx_t id) const noexcept = 0;
335 virtual const std::vector<ILayer::
Ptr> getInputs() const noexcept = 0;
341 virtual const std::vector<ILayer::
Ptr> getOutputs() const noexcept = 0;
355 virtual const std::
string& getName() const noexcept = 0;
361 virtual const Context& getContext() const noexcept = 0;
366 #include <details/ie_inetwork_iterator.hpp>
std::shared_ptr< IParameters > Ptr
A shared pointer to the IParameters object.
Definition: ie_inetwork.hpp:190
PortInfo(idx_t layerID)
The constructor creates a PortInfo object for port 0.
Definition: ie_inetwork.hpp:37
Port(const Port &port)
Copy constructor.
Definition: ie_inetwork.hpp:155
bool operator==(const Connection &connection) const
Compares the given Connection with the current one.
Definition: ie_inetwork.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_inetwork.hpp:119
std::shared_ptr< const ILayer > CPtr
A shared pointer to the const ILayer object.
Definition: ie_inetwork.hpp:227
This class is the main interface to describe the Inference Engine layer parameters. All methods here are constant and do not throw exceptions.
Definition: ie_inetwork.hpp:185
A header file for Blob and generic TBlob<>
Connection(const PortInfo &input, const PortInfo &output)
Constructor of a connection object.
Definition: ie_inetwork.hpp:95
Port(const SizeVector &shapes)
Constructor of a port object with shapes.
Definition: ie_inetwork.hpp:149
PortInfo(idx_t layerID, idx_t portID)
The constructor creates a PortInfo object.
Definition: ie_inetwork.hpp:44
const SizeVector & shape() const noexcept
Returns a constant reference to a vector with shapes. Shapes should be initialized if shape is empty...
Definition: ie_inetwork.hpp:164
bool operator!=(const PortInfo &portInfo) const
Checks if the given PortInfo object is not equal to the current one.
Definition: ie_inetwork.hpp:76
idx_t portId() const
Get port id.
Definition: ie_inetwork.hpp:58
size_t idx_t
A type of network objects indexes.
Definition: ie_inetwork.hpp:26
std::shared_ptr< ILayer > Ptr
A shared pointer to the ILayer object.
Definition: ie_inetwork.hpp:223
const PortInfo & to() const
Definition: ie_inetwork.hpp:127
idx_t layerId() const
Get layer id.
Definition: ie_inetwork.hpp:50
SizeVector & shape() noexcept
Returns a reference to a vector with shapes. Shapes should be initialized if shape is empty...
Definition: ie_inetwork.hpp:173
A header file for data layouts and conversion between them.
Definition: ie_inetwork.hpp:212
This class is the main interface to describe the Inference Engine network.
Definition: ie_inetwork.hpp:289
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 objects definition.
Definition: ie_inetwork.hpp:298
This class is the main interface to describe the Inference Engine layer. All methods here are constan...
Definition: ie_inetwork.hpp:218
bool operator!=(const Connection &connection) const
Checks if the given Connection is not equal to the current one.
Definition: ie_inetwork.hpp:111
This class is the main object to describe the Inference Engine port.
Definition: ie_inetwork.hpp:139
bool operator==(const PortInfo &portInfo) const
Compares the given PortInfo object with the current one.
Definition: ie_inetwork.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_inetwork.hpp:88
This class contains a pair from layerId and port index.
Definition: ie_inetwork.hpp:31
std::shared_ptr< INetwork > Ptr
A shared pointer to the INetwork object.
Definition: ie_inetwork.hpp:294