Article ID: 000094847 Content Type: Troubleshooting Last Reviewed: 05/19/2023

Unable to Get the Tensor Nodes Using OpenVINO™ Runtime C++ API in OpenVINO™ API 2.0

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Transition for getting Tensor nodes using OpenVINO™ Runtime C++ API in OpenVINO™ API 2.0.

Description

Unable to find the replacement for the following APIs in OpenVINO™ API 2.0 :

Blob::Ptr features_output = infer_request.GetBlob("features");

Blob::Ptr heatmaps_output = infer_request.GetBlob("heatmaps");

Blob::Ptr pafs_output = infer_request.GetBlob("pafs");

Resolution

The Blob API has been deprecated as of OpenVINO™ 2022 Release and OpenVINO™ API 2.0.

 

Use the following class to get the Tensor nodes for OpenVINO™ API 2.0:

infer_request.get_tensor(const std::string& tensor_name));

Additional information

Refer the InferRequest class for OpenVINO™ API 2.0.

Related Products

This article applies to 1 products