This class contains all the information about the Neural Network and the related binary information.
More...
#include <ie_cnn_network.h>
This class contains all the information about the Neural Network and the related binary information.
§ CNNNetwork() [1/3]
InferenceEngine::CNNNetwork::CNNNetwork |
( |
std::shared_ptr< ICNNNetwork > |
network | ) |
|
|
inlineexplicit |
Allows helper class to manage lifetime of network object.
- Parameters
-
network | Pointer to the network object |
§ CNNNetwork() [2/3]
InferenceEngine::CNNNetwork::CNNNetwork |
( |
const std::shared_ptr< const ngraph::Function > & |
network | ) |
|
|
explicit |
A constructor from ngraph::Function object.
- Parameters
-
network | Pointer to the ngraph::Function object |
§ CNNNetwork() [3/3]
§ AddExtension()
Registers extension within the plugin.
- Deprecated:
- Use Core::AddExtension to add an extension to the library
- Parameters
-
extension | Pointer to already loaded reader extension with shape propagation implementations |
§ addOutput()
void InferenceEngine::CNNNetwork::addOutput |
( |
const std::string & |
layerName, |
|
|
size_t |
outputIndex = 0 |
|
) |
| |
|
inline |
Adds output to the layer.
Wraps ICNNNetwork::addOutput
- Parameters
-
layerName | Name of the layer |
outputIndex | Index of the output |
§ begin()
details::CNNNetworkIterator InferenceEngine::CNNNetwork::begin |
( |
| ) |
const |
Begin layer iterator.
- Deprecated:
- Use CNNNetwork::getFunction() and work with ngraph::Function directly. The method will be removed in 2021.1
Order of layers is implementation specific, and can be changed in future
- Returns
- Iterator pointing to a layer
§ end()
details::CNNNetworkIterator InferenceEngine::CNNNetwork::end |
( |
| ) |
const |
§ getBatchSize()
virtual size_t InferenceEngine::CNNNetwork::getBatchSize |
( |
| ) |
const |
|
inlinevirtual |
§ getFunction() [1/2]
std::shared_ptr<ngraph::Function> InferenceEngine::CNNNetwork::getFunction |
( |
| ) |
|
|
inline |
Returns constant nGraph function.
- Returns
- constant nGraph function
§ getFunction() [2/2]
std::shared_ptr<const ngraph::Function> InferenceEngine::CNNNetwork::getFunction |
( |
| ) |
const |
|
inline |
Returns constant nGraph function.
- Returns
- constant nGraph function
§ getInputShapes()
Helper method to get collect all input shapes with names of corresponding Data objects.
- Returns
- Map of pairs: input name and its dimension.
§ getInputsInfo()
virtual InputsDataMap InferenceEngine::CNNNetwork::getInputsInfo |
( |
| ) |
const |
|
inlinevirtual |
Gets the network input Data node information. The received info is stored in the given InputsDataMap object.
Wraps ICNNNetwork::getInputsInfo
- Returns
- inputs Reference to InputsDataMap object
§ getLayerByName()
CNNLayerPtr InferenceEngine::CNNNetwork::getLayerByName |
( |
const char * |
layerName | ) |
const |
§ getName()
const std::string& InferenceEngine::CNNNetwork::getName |
( |
| ) |
const |
|
inline |
Gets the network name. The name is stored in the given pName string.
Wraps ICNNNetwork::getName
- Returns
- Network name
§ getOutputsInfo()
virtual OutputsDataMap InferenceEngine::CNNNetwork::getOutputsInfo |
( |
| ) |
const |
|
inlinevirtual |
Gets the network output Data node information. The received info is stored in the given Data node.
Wraps ICNNNetwork::getOutputsInfo
- Returns
- outputs Reference to the OutputsDataMap object
§ getPrecision()
virtual Precision InferenceEngine::CNNNetwork::getPrecision |
( |
| ) |
const |
|
virtual |
§ layerCount()
size_t InferenceEngine::CNNNetwork::layerCount |
( |
| ) |
const |
|
inline |
Returns the number of layers in the network as an integer value.
Wraps ICNNNetwork::layerCount
- Returns
- The number of layers as an integer value
§ operator const ICNNNetwork &()
InferenceEngine::CNNNetwork::operator const ICNNNetwork & |
( |
| ) |
const |
|
inline |
An overloaded operator & to get current network.
- Returns
- A const reference of the current network
§ operator ICNNNetwork &()
InferenceEngine::CNNNetwork::operator ICNNNetwork & |
( |
| ) |
|
|
inline |
An overloaded operator & to get current network.
- Returns
- An instance of the current network
§ operator ICNNNetwork::Ptr()
An overloaded operator cast to get pointer on current network.
- Returns
- A shared pointer of the current network
§ reshape()
Run shape inference with new input shapes for the network.
- Parameters
-
inputShapes | - map of pairs: name of corresponding data and its dimension. |
§ serialize()
void InferenceEngine::CNNNetwork::serialize |
( |
const std::string & |
xmlPath, |
|
|
const std::string & |
binPath = "" |
|
) |
| const |
|
inline |
Serialize network to IR and weights files.
- Parameters
-
xmlPath | Path to output IR file. |
binPath | Path to output weights file. The parameter is skipped in case of executable graph info serialization. |
§ setBatchSize()
virtual void InferenceEngine::CNNNetwork::setBatchSize |
( |
const size_t |
size | ) |
|
|
inlinevirtual |
§ size()
size_t InferenceEngine::CNNNetwork::size |
( |
| ) |
const |
The documentation for this class was generated from the following file: