7 #include <builders/ie_layer_builder.hpp>
10 #include <ie_network.hpp>
26 class INFERENCE_ENGINE_API_CLASS(Network):
public INetwork {
31 using Ptr = std::shared_ptr<Network>;
35 using iterator = details::INetworkIterator<Network, Layer>;
62 size_t size() const noexcept override;
75 explicit
Network(const std::
string& name);
110 idx_t addLayer(const std::vector<
PortInfo>& inputs, const
Layer& layer);
118 idx_t addLayer(const
Layer& layer);
124 void removeLayer(idx_t layerId);
138 void disconnect(const
Connection& connection);
145 std::vector<
Layer::
Ptr>& getLayers();
151 const std::vector<
Layer::
Ptr>& getLayers() const;
159 const
ILayer::
CPtr getLayer(idx_t
id) const noexcept override;
166 const std::vector<
ILayer::
CPtr> getInputs() const noexcept override;
171 std::vector<
Layer::
Ptr> getInputs();
177 const std::vector<
ILayer::
CPtr> getOutputs() const noexcept override;
182 std::vector<
Layer::
Ptr> getOutputs();
190 const std::vector<
Connection> getLayerConnections(idx_t layerId) const noexcept override;
196 const std::vector<
Connection>& getConnections() const;
202 const std::
string& getName() const noexcept override;
208 const
Context& getContext() const noexcept override;
213 Context& getContext() noexcept;
236 std::map<std::
string,
Parameter> parameters;
245 INFERENCE_ENGINE_API_CPP(const std::shared_ptr<
ICNNNetwork>) convertToICNNNetwork(const
INetwork::CPtr& network);
A header file that provides wrapper for ICNNNetwork object.
This class implements a builder for IE Layer.
Definition: ie_layer_builder.hpp:34
Definition: ie_argmax_layer.hpp:11
This class implements object.
Definition: ie_context.hpp:22
A header file for Blob and generic TBlob<>
details::INetworkIterator< Network, Layer > iterator
An iterator for Network builder definition.
Definition: ie_network_builder.hpp:35
This is a header file for the ICNNNetwork class.
std::shared_ptr< const INetwork > CPtr
A shared pointer to the constant INetwork object.
Definition: ie_network.hpp:359
This class implements a builder for IE Network.
Definition: ie_network_builder.hpp:26
This is the main interface to describe the NN topology.
Definition: ie_icnn_network.hpp:35
This class is the main interface to describe the Inference Engine network.
Definition: ie_network.hpp:354
details::INetworkIterator< const INetwork, const ILayer > const_iterator
A constant iterator for INetwork definition.
Definition: ie_network.hpp:363
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
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
This is a header file with common inference engine definitions.
std::shared_ptr< Network > Ptr
A shared pointer to the Network builder.
Definition: ie_network_builder.hpp:31