class InferenceEngine::IReader¶
Overview¶
IReader an abstract interface for Inference Engine readers. More…
#include <ie_reader.hpp>
class IReader: public std::enable_shared_from_this< IReader >
{
public:
// methods
virtual bool supportModel(std::istream& model) const = 0;
virtual CNNNetwork read(
std::istream& model,
const std::vector<IExtensionPtr>& exts
) const = 0;
virtual CNNNetwork read(
std::istream& model,
const Blob::CPtr& weights,
const std::vector<IExtensionPtr>& exts
) const = 0;
virtual std::vector<std::string> getDataFileExtensions() const = 0;
protected:
};
Detailed Documentation¶
IReader an abstract interface for Inference Engine readers.
Methods¶
virtual bool supportModel(std::istream& model) const = 0
Checks that reader supports format of the model.
Parameters:
model |
stream with model |
Returns:
true if format is supported
virtual CNNNetwork read(
std::istream& model,
const std::vector<IExtensionPtr>& exts
) const = 0
Reads the model to CNNNetwork.
Parameters:
model |
stream with model |
exts |
vector with extensions |
Returns:
virtual CNNNetwork read(
std::istream& model,
const Blob::CPtr& weights,
const std::vector<IExtensionPtr>& exts
) const = 0
Reads the model to CNNNetwork.
Parameters:
model |
stream with model |
weights |
stream with binary data |
exts |
vector with extensions |
Returns:
virtual std::vector<std::string> getDataFileExtensions() const = 0
Returns all supported extensions for data files.
Returns:
vector of file extensions, for example the reader for OpenVINO IR returns {“bin”}