31 IE_SUPPRESS_DEPRECATED_START
38 using Ptr = std::shared_ptr<CNNNetReader>;
44 if (actual ==
nullptr) {
49 #ifdef ENABLE_UNICODE_PATH_SUPPORT 57 void ReadNetwork(
const std::wstring& filepath) {
58 CALL_STATUS_FNC(ReadNetwork, details::wStringtoMBCSstringChar(filepath).c_str());
70 CALL_STATUS_FNC(ReadNetwork, filepath.c_str());
82 CALL_STATUS_FNC(ReadNetwork, model, size);
93 CALL_STATUS_FNC(SetWeights, weights);
96 #ifdef ENABLE_UNICODE_PATH_SUPPORT 104 void ReadWeights(
const std::wstring& filepath) {
105 CALL_STATUS_FNC(ReadWeights, details::wStringtoMBCSstringChar(filepath).c_str());
117 CALL_STATUS_FNC(ReadWeights, filepath.c_str());
127 if (network.get() ==
nullptr) {
134 return *network.get();
145 CALL_FNC_NO_ARGS(isParseSuccess);
156 CALL_STATUS_FNC_NO_ARGS(getDescription);
169 CALL_STATUS_FNC(getName, name,
sizeof(name) /
sizeof(*name));
181 CALL_FNC_NO_ARGS(getVersion);
185 std::shared_ptr<ICNNNetReader> actual;
186 std::shared_ptr<CNNNetwork> network;
188 IE_SUPPRESS_DEPRECATED_END
#define THROW_IE_EXCEPTION
A macro used to throw the exception with a notable description.
Definition: ie_exception.hpp:25
A header file that provides wrapper for ICNNNetwork object.
Inference Engine API.
Definition: ie_argmax_layer.hpp:15
A header file that provides macros to handle no exception methods.
CNNNetwork ReadNetwork(const std::string &modelPath, const std::string &binPath="") const
Reads IR xml and bin files.
This is a wrapper class used to build and parse a network from the given IR.
Definition: ie_cnn_net_reader.h:32
std::string name
Layer name.
Definition: ie_layers.h:42
std::shared_ptr< CNNNetReader > Ptr
A smart pointer to this class.
Definition: ie_cnn_net_reader.h:38
A header file for Blob and generic TBlob<>
std::string getName() const
Definition: ie_cnn_net_reader.h:167
ICNNNetReader * CreateCNNNetReader() noexcept
Creates a CNNNetReader instance.
std::shared_ptr< TBlob< T >> Ptr
Smart Pointer to this TBlob object.
Definition: ie_blob.h:478
CNNNetwork getNetwork()
Gets a copy of built network object.
Definition: ie_cnn_net_reader.h:125
void ReadNetwork(const void *model, size_t size)
Definition: ie_cnn_net_reader.h:81
This class contains all the information about the Neural Network and the related binary information...
Definition: ie_cnn_network.h:38
int getVersion() const
Definition: ie_cnn_net_reader.h:180
void SetWeights(const TBlob< uint8_t >::Ptr &weights)
Definition: ie_cnn_net_reader.h:92
CNNNetReader()
A default constructor.
Definition: ie_cnn_net_reader.h:43
A header file that provides interface for network reader that is used to build networks from a given ...
bool isParseSuccess() const
Definition: ie_cnn_net_reader.h:144
This is a header file with functions related to filesystem operations.
void ReadNetwork(const std::string &filepath)
Definition: ie_cnn_net_reader.h:69
std::string getDescription() const
Definition: ie_cnn_net_reader.h:155
void ReadWeights(const std::string &filepath)
Definition: ie_cnn_net_reader.h:116
This is a header file with common inference engine definitions.