36 class INFERENCE_ENGINE_API_CLASS(CNNNetwork) {
43 IE_SUPPRESS_DEPRECATED_START
49 explicit CNNNetwork(std::shared_ptr<ICNNNetwork> network);
50 IE_SUPPRESS_DEPRECATED_END
59 explicit CNNNetwork(
const std::shared_ptr<ngraph::Function>& network,
60 const std::vector<IExtensionPtr>& exts = {});
116 IE_SUPPRESS_DEPRECATED_START
143 IE_SUPPRESS_DEPRECATED_END
167 void addOutput(
const std::string& layerName,
size_t outputIndex = 0);
190 void serialize(
const std::string& xmlPath,
const std::string& binPath = {})
const;
201 CALL_STATUS_FNC(getOVNameForTensor, ov_name, orig_name);
206 IE_SUPPRESS_DEPRECATED_START
216 IE_SUPPRESS_DEPRECATED_END
std::shared_ptr< ICNNNetwork > network
Network extra interface, might be nullptr.
Definition: ie_cnn_network.h:210
CNNNetwork()
A default constructor.
void serialize(const std::string &xmlPath, const std::string &binPath={}) const
Serialize network to IR and weights files.
CNNNetwork(const std::shared_ptr< ngraph::Function > &network, const std::vector< IExtensionPtr > &exts={})
A constructor from ngraph::Function object This constructor wraps existing ngraph::Function If you wa...
std::shared_ptr< const ngraph::Function > getFunction() const
Returns constant nGraph function.
std::string getOVNameForTensor(const std::string &orig_name) const
Method maps framework tensor name to OpenVINO name.
Definition: ie_cnn_network.h:199
size_t layerCount() const
Returns the number of layers in the network as an integer value.
size_t getBatchSize() const
Gets the inference batch size.
CNNNetwork(std::shared_ptr< ICNNNetwork > network)
Allows helper class to manage lifetime of network object.
std::shared_ptr< ngraph::Function > getFunction()
Returns constant nGraph function.
InputsDataMap getInputsInfo() const
Gets the network input Data node information. The received info is stored in the given InputsDataMap ...
DataPtr output
A pointer to output data.
Definition: ie_cnn_network.h:221
ICNNNetwork::InputShapes getInputShapes() const
Helper method to get collect all input shapes with names of corresponding Data objects.
void addOutput(const std::string &layerName, size_t outputIndex=0)
Adds output to the layer.
void setBatchSize(const size_t size)
Changes the inference batch size.
const std::string & getName() const
Returns the network name.
void reshape(const ICNNNetwork::InputShapes &inputShapes)
Run shape inference with new input shapes for the network.
OutputsDataMap getOutputsInfo() const
Gets the network output Data node information. The received info is stored in the given Data node.
This is the main interface to describe the NN topology.
Definition: ie_icnn_network.hpp:48
std::shared_ptr< ICNNNetwork > Ptr
A shared pointer to a ICNNNetwork interface.
Definition: ie_icnn_network.hpp:53
std::map< std::string, SizeVector > InputShapes
Map of pairs: name of corresponding data and its dimension.
Definition: ie_icnn_network.hpp:161
A header file for Blob and generic TBlob<>
This is a header file with common inference engine definitions.
This header file defines the main Data representation node.
A header file that provides macros to handle no exception methods.
A header file that defines a wrapper class for handling extension instantiation and releasing resourc...
This is a header file for the ICNNNetwork class.
Inference Engine C++ API.
Definition: cldnn_config.hpp:15
std::map< std::string, InputInfo::Ptr > InputsDataMap
A collection that contains string as key, and InputInfo smart pointer as value.
Definition: ie_input_info.hpp:165
std::map< std::string, DataPtr > OutputsDataMap
A collection that contains string as key, and Data smart pointer as value.
Definition: ie_icnn_network.hpp:41
std::shared_ptr< Data > DataPtr
Smart pointer to Data.
Definition: ie_common.h:37