Implement ov::IInferRequestInternalWrapper::GetPreProcess to recover python GetPrepProcess tests (#18484)

Co-authored-by: River.Li <river.li@intel.com>
This commit is contained in:
Ilya Churaev
2023-07-12 00:02:54 +04:00
committed by GitHub
co-authored by River.Li
parent ee50d2d120
commit 0927e867b0
+7 -1
View File
@@ -553,7 +553,13 @@ public:
->GetPreProcess(name);
}
#endif
OPENVINO_NOT_IMPLEMENTED;
auto port = find_port(name);
auto& rt_info = port.get_rt_info();
auto it = rt_info.find("ie_legacy_preproc");
if (it != rt_info.end()) {
return it->second.as<InferenceEngine::PreProcessInfo>();
}
OPENVINO_THROW("Cannot find PreProcess info.");
}
std::vector<std::shared_ptr<InferenceEngine::IVariableStateInternal>> QueryState() override {