17 #include "details/os/os_filesystem.hpp"
33 using Ptr = std::shared_ptr<CNNNetReader>;
40 #ifdef ENABLE_UNICODE_PATH_SUPPORT
46 CALL_STATUS_FNC(
ReadNetwork, details::wStringtoMBCSstringChar(filepath).c_str());
74 #ifdef ENABLE_UNICODE_PATH_SUPPORT
80 CALL_STATUS_FNC(
ReadWeights, details::wStringtoMBCSstringChar(filepath).c_str());
98 if (network.get() ==
nullptr) {
105 return *network.get();
131 CALL_STATUS_FNC(
getName, name,
sizeof(name) /
sizeof(*name));
144 std::shared_ptr<ICNNNetReader> actual;
145 std::shared_ptr<CNNNetwork> network;
#define THROW_IE_EXCEPTION
A macro used to throw the exception with a notable description.
Definition: ie_exception.hpp:24
A header file that provides wrapper for ICNNNetwork object.
Inference Engine API.
Definition: ie_argmax_layer.hpp:11
A header file that provides macros to handle no exception methods.
This is a wrapper class used to build and parse a network from the given IR. All the methods here can...
Definition: ie_cnn_net_reader.h:28
std::shared_ptr< CNNNetReader > Ptr
A smart pointer to this class.
Definition: ie_cnn_net_reader.h:33
A header file for Blob and generic TBlob<>
std::string getName() const
Wraps original method ICNNNetReader::getName.
Definition: ie_cnn_net_reader.h:129
ICNNNetReader * CreateCNNNetReader() noexcept
Creates a CNNNetReader instance.
std::shared_ptr< TBlob< T >> Ptr
Smart Pointer to this TBlob object.
Definition: ie_blob.h:358
CNNNetwork getNetwork()
Gets a copy of built network object.
Definition: ie_cnn_net_reader.h:96
void ReadNetwork(const void *model, size_t size)
Wraps original method ICNNNetReader::ReadNetwork(const void*, size_t, ResponseDesc*) ...
Definition: ie_cnn_net_reader.h:62
This class contains all the information about the Neural Network and the related binary information...
Definition: ie_cnn_network.h:37
int getVersion() const
Wraps original method ICNNNetReader::getVersion.
Definition: ie_cnn_net_reader.h:139
void SetWeights(const TBlob< uint8_t >::Ptr &weights)
Wraps original method ICNNNetReader::SetWeights.
Definition: ie_cnn_net_reader.h:70
CNNNetReader()
A default constructor.
Definition: ie_cnn_net_reader.h:38
A header file that provides interface for network reader that is used to build networks from a given ...
bool isParseSuccess() const
Wraps original method ICNNNetReader::isParseSuccess.
Definition: ie_cnn_net_reader.h:112
void ReadNetwork(const std::string &filepath)
Wraps original method ICNNNetReader::ReadNetwork.
Definition: ie_cnn_net_reader.h:54
std::string getDescription() const
Wraps original method ICNNNetReader::getDescription.
Definition: ie_cnn_net_reader.h:120
void ReadWeights(const std::string &filepath)
Wraps original method ICNNNetReader::ReadWeights.
Definition: ie_cnn_net_reader.h:88
This is a header file with common inference engine definitions.