Skip to content

Commit

Permalink
add extensions for new Inference Engine for CPU.
Browse files Browse the repository at this point in the history
Signed-off-by: Lewis Liu <[email protected]>
  • Loading branch information
LewisLiuPub committed Dec 4, 2019
1 parent bc1327c commit e7f0f36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dynamic_vino_lib/src/engines/engine_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ std::shared_ptr<Engines::Engine> Engines::EngineManager::createEngine_V2019R2_pl
const std::string & device, const std::shared_ptr<Models::BaseModel> & model)
{
InferenceEngine::Core core;
if ((device.find("CPU") != std::string::npos)) {
core.AddExtension(std::make_shared<InferenceEngine::Extensions::Cpu::CpuExtensions>(), device);
}
auto executable_network = core.LoadNetwork(model->getNetReader()->getNetwork(), device);
auto request = executable_network.CreateInferRequestPtr();

Expand Down

0 comments on commit e7f0f36

Please sign in to comment.