Fixed newAPI for case if core was removed (#12207)
* Fixed newAPI for case if core was removed * Fixed code style * Fixed typo * Use new API by default * Create core with template plugin * Added doxygen comment
This commit is contained in:
1 parent
23e513d679
commit
811a483acb
14 files changed
+55
-49
No files matched your search
@@ -480,10 +480,7 @@ InferenceEngine::IInferRequestInternal::Ptr AutoBatchExecutableNetwork::CreateIn
|
||||
InferenceEngine::IInferRequestInternal::Ptr AutoBatchExecutableNetwork::CreateInferRequestImpl(
|
||||
const std::vector<std::shared_ptr<const ov::Node>>& inputs,
|
||||
const std::vector<std::shared_ptr<const ov::Node>>& outputs) {
|
||||
if (!this->_plugin)
|
||||
return nullptr;
|
||||
const auto& core = _plugin->GetCore();
|
||||
if (!core || !core->isNewAPI())
|
||||
if (!this->_plugin || !_plugin->IsNewAPI())
|
||||
return nullptr;
|
||||
auto workerRequestPtrAndId = GetWorkerInferRequest();
|
||||
return std::make_shared<AutoBatchInferRequest>(inputs,
|
||||
|
||||
Reference in new issue
Block a user