Mak SO objct to be mandatory argument for VariablState (#5572)

This commit is contained in:
Ilya Lavrenov
2021-05-12 14:17:43 +03:00
committed by GitHub
parent f458bd4384
commit abd663463d
4 changed files with 13 additions and 11 deletions

View File

@@ -35,8 +35,8 @@ class INFERENCE_ENGINE_API_CLASS(ExecutableNetwork) {
std::shared_ptr<IExecutableNetworkInternal> _impl;
std::shared_ptr<details::SharedObjectLoader> _so;
explicit ExecutableNetwork(const std::shared_ptr<IExecutableNetworkInternal>& impl,
const std::shared_ptr<details::SharedObjectLoader>& so);
ExecutableNetwork(const std::shared_ptr<IExecutableNetworkInternal>& impl,
const std::shared_ptr<details::SharedObjectLoader>& so);
friend class InferencePlugin;

View File

@@ -36,8 +36,8 @@ class INFERENCE_ENGINE_API_CLASS(InferRequest) {
std::shared_ptr<IInferRequestInternal> _impl;
std::shared_ptr<details::SharedObjectLoader> _so;
explicit InferRequest(const std::shared_ptr<IInferRequestInternal>& impl,
const std::shared_ptr<details::SharedObjectLoader>& so);
InferRequest(const std::shared_ptr<IInferRequestInternal>& impl,
const std::shared_ptr<details::SharedObjectLoader>& so);
friend class ExecutableNetwork;

View File

@@ -11,9 +11,10 @@
#pragma once
#include <string>
#include <memory>
#include "ie_api.h"
#include "ie_blob.h"
#include "details/ie_so_loader.h"
namespace InferenceEngine {
@@ -28,15 +29,15 @@ class IVariableStateInternal;
*/
class INFERENCE_ENGINE_API_CLASS(VariableState) {
std::shared_ptr<IVariableStateInternal> _impl = nullptr;
details::SharedObjectLoader::Ptr _so = nullptr;
std::shared_ptr<details::SharedObjectLoader> _so = nullptr;
/**
* @brief Constructs VariableState from the initialized std::shared_ptr
* @param impl Initialized shared pointer
* @param so Optional: Plugin to use. This is required to ensure that VariableState can work properly even if plugin object is destroyed.
*/
explicit VariableState(const std::shared_ptr<IVariableStateInternal>& impl,
const details::SharedObjectLoader::Ptr& so = {});
VariableState(const std::shared_ptr<IVariableStateInternal>& impl,
const std::shared_ptr<details::SharedObjectLoader>& so);
friend class InferRequest;
friend class ExecutableNetwork;