无法在 OpenVINO™ API 2.0 中使用 OpenVINO™ 运行时 C++ API 获得 Tensor 节点
内容类型: 故障排除 | 文章 ID: 000094847 | 上次审核日期: 2023 年 05 月 19 日
在 OpenVINO™ API 2.0 中找不到以下 API 的替换品:
Blob::Ptr features_output = infer_request.GetBlob("features");
Blob::Ptr heatmaps_output = infer_request.GetBlob("heatmaps");
Blob::Ptr pafs_output = infer_request.GetBlob("pafs");
截至 2022 OpenVINO™版和 OpenVINO™ API 2.0 版,Blob API 已被弃用。
使用 下列课程获得适用于 OpenVINO™ API 2.0 的 Tensor 节点:
infer_request.get_tensor(const std::string& tensor_name));
有关OpenVINO™ API 2.0,请参阅 InferRequest class。