30 IE_SUPPRESS_DEPRECATED_START
37 using Ptr = std::shared_ptr<CNNNetReader>;
42 CNNNetReader(): actual(shared_from_irelease(
InferenceEngine::CreateCNNNetReader())) {}
44 #ifdef ENABLE_UNICODE_PATH_SUPPORT 52 void ReadNetwork(
const std::wstring& filepath) {
53 CALL_STATUS_FNC(ReadNetwork, details::wStringtoMBCSstringChar(filepath).c_str());
64 void ReadNetwork(
const std::string& filepath) {
65 CALL_STATUS_FNC(ReadNetwork, filepath.c_str());
76 void ReadNetwork(
const void* model,
size_t size) {
77 CALL_STATUS_FNC(ReadNetwork, model, size);
88 CALL_STATUS_FNC(SetWeights, weights);
91 #ifdef ENABLE_UNICODE_PATH_SUPPORT 99 void ReadWeights(
const std::wstring& filepath) {
100 CALL_STATUS_FNC(ReadWeights, details::wStringtoMBCSstringChar(filepath).c_str());
111 void ReadWeights(
const std::string& filepath) {
112 CALL_STATUS_FNC(ReadWeights, filepath.c_str());
120 CNNNetwork getNetwork() {
122 if (network.get() ==
nullptr) {
124 network.reset(
new CNNNetwork(actual));
129 return *network.get();
139 bool isParseSuccess()
const {
140 CALL_FNC_NO_ARGS(isParseSuccess);
150 std::string getDescription()
const {
151 CALL_STATUS_FNC_NO_ARGS(getDescription);
162 std::string getName()
const {
164 CALL_STATUS_FNC(getName, name,
sizeof(name) /
sizeof(*name));
175 int getVersion()
const {
176 CALL_FNC_NO_ARGS(getVersion);
180 std::shared_ptr<ICNNNetReader> actual;
181 std::shared_ptr<CNNNetwork> network;
183 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.
A header file for Blob and generic TBlob<>
std::shared_ptr< TBlob< T >> Ptr
Smart Pointer to this TBlob object.
Definition: ie_blob.h:477
A header file that provides interface for network reader that is used to build networks from a given ...
This is a header file with functions related to filesystem operations.
This is a header file with common inference engine definitions.