Bell/fix gpu load model file wrong lifecycle (#14347)
* ensure correct lifecycle with load model file Signed-off-by: fishbell <bell.song@intel.com> * clang format Signed-off-by: fishbell <bell.song@intel.com> * enable tests Signed-off-by: fishbell <bell.song@intel.com> Signed-off-by: fishbell <bell.song@intel.com>
This commit is contained in:
1 parent
bf0d2cea4b
commit
4f1ad3bf3d
12 files changed
+50
-15
No files matched your search
@@ -302,9 +302,9 @@ InferenceEngine::Parameter MultiDeviceInferencePlugin::GetMetric(const std::stri
|
||||
}
|
||||
|
||||
// Is called only when caching is enabled
|
||||
IExecutableNetworkInternal::Ptr MultiDeviceInferencePlugin::LoadNetwork(const std::string& modelPath,
|
||||
ov::SoPtr<InferenceEngine::IExecutableNetworkInternal> MultiDeviceInferencePlugin::LoadNetwork(const std::string& modelPath,
|
||||
const std::map<std::string, std::string>& config) {
|
||||
return LoadNetworkImpl(modelPath, {}, config);
|
||||
return {LoadNetworkImpl(modelPath, {}, config), nullptr};
|
||||
}
|
||||
|
||||
IExecutableNetworkInternal::Ptr MultiDeviceInferencePlugin::LoadExeNetworkImpl(const CNNNetwork &network,
|
||||
|
||||
@@ -33,7 +33,7 @@ public:
|
||||
InferenceEngine::IExecutableNetworkInternal::Ptr LoadExeNetworkImpl(const InferenceEngine::CNNNetwork& network,
|
||||
const std::map<std::string, std::string>& config) override;
|
||||
|
||||
InferenceEngine::IExecutableNetworkInternal::Ptr LoadNetwork(const std::string& modelPath,
|
||||
ov::SoPtr<InferenceEngine::IExecutableNetworkInternal> LoadNetwork(const std::string& modelPath,
|
||||
const std::map<std::string, std::string>& config) override;
|
||||
|
||||
void SetConfig(const std::map<std::string, std::string>& config) override;
|
||||
|
||||
Reference in new issue
Block a user