11 #include <builders/ie_layer_builder.hpp>
14 #include <ie_network.hpp>
28 IE_SUPPRESS_DEPRECATED_START
29 class INFERENCE_ENGINE_NN_BUILDER_API_CLASS(Network):
public INetwork {
34 using Ptr = std::shared_ptr<Network>;
38 using iterator = details::INetworkIterator<Network, Layer>;
49 const_iterator begin() const noexcept override;
60 const_iterator end() const noexcept override;
66 size_t size() const noexcept override;
73 explicit Network(const ICNNNetwork& network);
79 explicit Network(const std::
string& name);
85 explicit Network(const INetwork& network);
92 Network(const Context& ieContext, const ICNNNetwork& network);
98 Network(const Context& ieContext, const std::
string& name);
104 Network(const Context& ieContext, const INetwork& network);
114 idx_t addLayer(const std::vector<PortInfo>& inputs, const Layer& layer);
122 idx_t addLayer(const Layer& layer);
128 void removeLayer(
idx_t layerId);
136 void connect(const PortInfo& input, const PortInfo& output);
142 void disconnect(const Connection& connection);
149 std::vector<Layer::Ptr>& getLayers();
155 const std::vector<Layer::Ptr>& getLayers() const;
163 const ILayer::CPtr getLayer(
idx_t id) const noexcept override;
164 Layer::Ptr getLayer(
idx_t layerId);
170 const std::vector<ILayer::CPtr> getInputs() const noexcept override;
175 std::vector<Layer::Ptr> getInputs();
181 const std::vector<ILayer::CPtr> getOutputs() const noexcept override;
186 std::vector<Layer::Ptr> getOutputs();
194 const std::vector<Connection> getLayerConnections(
idx_t layerId) const noexcept override;
200 const std::vector<Connection>& getConnections() const;
206 const std::
string& getName() const noexcept override;
212 const Context& getContext() const noexcept override;
217 Context& getContext() noexcept;
224 const INetwork::CPtr build();
237 explicit operator const INetwork::CPtr();
240 std::map<std::
string, Parameter> parameters;
250 INFERENCE_ENGINE_NN_BUILDER_DEPRECATED
251 INFERENCE_ENGINE_API_CPP(const std::shared_ptr<ICNNNetwork>) convertToICNNNetwork(const INetwork::CPtr& network);
253 IE_SUPPRESS_DEPRECATED_END
A header file that provides wrapper for ICNNNetwork object.
Inference Engine API.
Definition: ie_argmax_layer.hpp:11
A header file for Blob and generic TBlob<>
This is a header file for the ICNNNetwork class.
size_t idx_t
A type of network objects indexes.
Definition: ie_network.hpp:28
This is a header file for the IE Context class.
This is a header file with common inference engine definitions.