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>;
45 const_iterator begin() const noexcept override;
56 const_iterator end() const noexcept override;
62 size_t size() const noexcept override;
69 explicit Network(const ICNNNetwork& network);
75 explicit Network(const std::
string& name);
81 explicit Network(const INetwork& network);
88 Network(const Context& ieContext, const ICNNNetwork& network);
94 Network(const Context& ieContext, const std::
string& name);
100 Network(const Context& ieContext, const INetwork& network);
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);
132 void connect(const PortInfo& input, const PortInfo& output);
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;
160 Layer::Ptr getLayer(idx_t layerId);
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;
220 const INetwork::CPtr build();
233 explicit operator const INetwork::CPtr();
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.
Definition: ie_argmax_layer.hpp:11
A header file for Blob and generic TBlob<>
This is a header file for the ICNNNetwork class.
This is a header file for the IE Context class.
This is a header file with common inference engine definitions.