Changed code which check newAPI flag from Core (#10080)
* Changed code which check newAPI flag from Core * Fixed typo
This commit is contained in:
@@ -792,7 +792,10 @@ void HeteroExecutableNetwork::Export(std::ostream& heteroModel) {
|
||||
IInferRequestInternal::Ptr HeteroExecutableNetwork::CreateInferRequestImpl(
|
||||
const std::vector<std::shared_ptr<const ov::Node>>& inputs,
|
||||
const std::vector<std::shared_ptr<const ov::Node>>& outputs) {
|
||||
if (!this->_plugin || !this->_plugin->GetCore() || !this->_plugin->GetCore()->isNewAPI())
|
||||
if (!this->_plugin)
|
||||
return nullptr;
|
||||
const auto& core = _plugin->GetCore();
|
||||
if (!core || !core->isNewAPI())
|
||||
return nullptr;
|
||||
HeteroInferRequest::SubRequestsList inferRequests;
|
||||
int index = 0;
|
||||
|
||||
Reference in New Issue
Block a user