This is a wrapper class used to build and parse a network from the given IR.
More...
#include <ie_cnn_net_reader.h>
This is a wrapper class used to build and parse a network from the given IR.
- Deprecated:
- Use InferenceEngine::Core::ReadNetwork methods. This API will be removed in 2021.1
All the methods here can throw exceptions.
§ getDescription()
std::string InferenceEngine::CNNNetReader::getDescription |
( |
| ) |
const |
|
inline |
§ getName()
std::string InferenceEngine::CNNNetReader::getName |
( |
| ) |
const |
|
inline |
§ getNetwork()
CNNNetwork InferenceEngine::CNNNetReader::getNetwork |
( |
| ) |
|
|
inline |
Gets a copy of built network object.
- Returns
- A copy of the CNNNetwork object to be loaded
§ getVersion()
int InferenceEngine::CNNNetReader::getVersion |
( |
| ) |
const |
|
inline |
§ isParseSuccess()
bool InferenceEngine::CNNNetReader::isParseSuccess |
( |
| ) |
const |
|
inline |
§ ReadNetwork() [1/2]
void InferenceEngine::CNNNetReader::ReadNetwork |
( |
const std::string & |
filepath | ) |
|
|
inline |
Parses the topology part of the IR (.xml)
Wraps ICNNNetReader::ReadNetwork
- Parameters
-
filepath | The full path to the .xml file of the IR |
§ ReadNetwork() [2/2]
void InferenceEngine::CNNNetReader::ReadNetwork |
( |
const void * |
model, |
|
|
size_t |
size |
|
) |
| |
|
inline |
§ ReadWeights()
void InferenceEngine::CNNNetReader::ReadWeights |
( |
const std::string & |
filepath | ) |
|
|
inline |
Loads and sets the weights buffer directly from the IR .bin file.
Wraps ICNNNetReader::ReadWeights
- Parameters
-
filepath | Full path to the .bin file |
§ SetWeights()
void InferenceEngine::CNNNetReader::SetWeights |
( |
const TBlob< uint8_t >::Ptr & |
weights | ) |
|
|
inline |
Sets the weights buffer (.bin part) from the IR.
Wraps ICNNNetReader::SetWeights
- Parameters
-
weights | Blob of bytes that holds all the IR binary data |
The documentation for this class was generated from the following file: