This class contains all the information about the Neural Network and the related binary information. More...
#include <ie_cnn_network.h>

Public Member Functions | |
| CNNNetwork ()=default | |
| A default constructor. | |
| CNNNetwork (ICNNNetwork *actual) | |
| Initialises helper class from externally managed pointer. More... | |
| CNNNetwork (std::shared_ptr< ICNNNetwork > network) | |
| Allows helper class to manage lifetime of network object. More... | |
| CNNNetwork (std::shared_ptr< ICNNNetReader > reader) | |
| A constructor from ICNNNetReader object. More... | |
| virtual | ~CNNNetwork () |
| A destructor. | |
| virtual Precision | getPrecision () const |
| Wraps original method ICNNNetwork::getPrecision. | |
| virtual OutputsDataMap | getOutputsInfo () const |
| Wraps original method ICNNNetwork::getOutputsInfo. | |
| virtual InputsDataMap | getInputsInfo () const |
| Wraps original method ICNNNetwork::getInputsInfo. | |
| size_t | layerCount () const |
| Wraps original method ICNNNetwork::layerCount. | |
| const std::string & | getName () const noexcept |
| Wraps original method ICNNNetwork::getName. | |
| virtual void | setBatchSize (const size_t size) |
| Wraps original method ICNNNetwork::setBatchSize. | |
| virtual size_t | getBatchSize () const |
| Wraps original method ICNNNetwork::getBatchSize. | |
| operator ICNNNetwork & () const | |
| An overloaded operator & to get current network. More... | |
| void | setTargetDevice (TargetDevice device) |
| Sets tha target device. More... | |
| void | addOutput (const std::string &layerName, size_t outputIndex=0) |
| Wraps original method ICNNNetwork::addOutput. | |
| CNNLayerPtr | getLayerByName (const char *layerName) const |
| Wraps original method ICNNNetwork::getLayerByName. | |
| details::CNNNetworkIterator | begin () const |
| Begin layer iterator Order of layers is implementation specific, and can be changed in future. | |
| details::CNNNetworkIterator | end () const |
| End layer iterator. | |
| size_t | size () const |
| number of layers in network object More... | |
| void | AddExtension (InferenceEngine::IShapeInferExtensionPtr extension) |
| Registers extension within the plugin. More... | |
| virtual ICNNNetwork::InputShapes | getInputShapes () const |
| |
| virtual void | reshape (const ICNNNetwork::InputShapes &inputShapes) |
| Run shape inference with new input shapes for the network. More... | |
| void | serialize (const std::string &xmlPath, const std::string &binPath="") const |
| Serialize network to IR and weights files. More... | |
Protected Attributes | |
| std::shared_ptr< ICNNNetReader > | reader |
| reader extra reference, might be nullptr | |
| std::shared_ptr< ICNNNetwork > | network |
| network extra interface, might be nullptr | |
| ICNNNetwork * | actual = nullptr |
| A pointer to the current network. | |
| DataPtr | output |
| A pointer to output data. | |
This class contains all the information about the Neural Network and the related binary information.
|
inlineexplicit |
Initialises helper class from externally managed pointer.
| actual | Pointer to the network object |
|
inlineexplicit |
Allows helper class to manage lifetime of network object.
| network | Pointer to the network object |
|
inlineexplicit |
A constructor from ICNNNetReader object.
| reader | Pointer to the ICNNNetReader object |
|
inline |
Registers extension within the plugin.
| extension | Pointer to already loaded reader extension with shape propagation implementations |
|
inlinevirtual |
|
inline |
An overloaded operator & to get current network.
|
inlinevirtual |
Run shape inference with new input shapes for the network.
| inputShapes | - map of pairs: name of corresponding data and its dimension. |
|
inline |
Serialize network to IR and weights files.
| xmlPath | Path to output IR file. |
| binPath | Path to output weights file. The parameter is skipped in case of executable graph info serialization. |
|
inline |
Sets tha target device.
| device | Device instance to set |
|
inline |
number of layers in network object