2021-06-01 16:31:29 +03:00
|
|
|
#include <ie_core.hpp>
|
2020-09-22 18:01:48 +03:00
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
using namespace InferenceEngine;
|
|
|
|
|
//! [part0]
|
|
|
|
|
InferenceEngine::Core core;
|
|
|
|
|
// Load CPU extension as a shared library
|
2021-03-05 12:08:01 +03:00
|
|
|
auto extension_ptr = std::make_shared<InferenceEngine::Extension>(std::string{"<shared lib path>"});
|
2020-09-22 18:01:48 +03:00
|
|
|
// Add extension to the CPU device
|
|
|
|
|
core.AddExtension(extension_ptr, "CPU");
|
|
|
|
|
//! [part0]
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|