15 lines
354 B
C++
15 lines
354 B
C++
#include <ie_core.hpp>
|
|
|
|
int main() {
|
|
using namespace InferenceEngine;
|
|
//! [part0]
|
|
InferenceEngine::Core core;
|
|
// Load CPU extension as a shared library
|
|
auto extension_ptr = std::make_shared<InferenceEngine::Extension>(std::string{"<shared lib path>"});
|
|
// Add extension to the CPU device
|
|
core.AddExtension(extension_ptr, "CPU");
|
|
//! [part0]
|
|
|
|
return 0;
|
|
}
|