Bell/fix static scan issues (#18285)

* change default value

Signed-off-by: fishbell <bell.song@intel.com>

* fix case failure

Signed-off-by: fishbell <bell.song@intel.com>

* fix post commit failure

Signed-off-by: fishbell <bell.song@intel.com>

* fix sdl issues

Signed-off-by: fishbell <bell.song@intel.com>

---------

Signed-off-by: fishbell <bell.song@intel.com>
This commit is contained in:
yanlan song 2023-06-30 15:41:48 +08:00 committed by GitHub
parent 1a60d40bf2
commit 1f7176031d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View File

@ -92,9 +92,9 @@ struct DeviceInformation {
DeviceName unique_name;
unsigned int device_priority;
DeviceInformation(DeviceName dn = {}, ov::AnyMap conf = {},
int nReq = -1, std::string defaultID = {}, DeviceName uName = {}, unsigned int priority = 0)
: device_name(dn), config(conf),
num_requests_per_devices(nReq), default_device_id(defaultID), unique_name(uName), device_priority(priority)
int n_req = -1, std::string default_id = {}, DeviceName name = {}, unsigned int priority = 0)
: device_name(std::move(dn)), config(std::move(conf)),
num_requests_per_devices(n_req), default_device_id(std::move(default_id)), unique_name(std::move(name)), device_priority(priority)
{}
};

View File

@ -282,8 +282,7 @@ ov::Any Plugin::get_property(const std::string& name, const ov::AnyMap& argument
auto ret = m_plugin_config.supported_properties(get_device_name());
return ret;
} else if (name == ov::device::full_name) {
std::string device_name = { get_device_name() };
return decltype(ov::device::full_name)::value_type {device_name};
return decltype(ov::device::full_name)::value_type {get_device_name()};
} else if (name == ov::device::capabilities.name()) {
auto device_list = get_core()->get_available_devices();
std::vector<std::string> capabilities;
@ -538,7 +537,7 @@ ov::SupportedOpsMap Plugin::query_model(const std::shared_ptr<const ov::Model>&
queryconfig.apply_user_properties();
auto full_property = queryconfig.get_full_properties();
auto priorities = full_property.find(ov::device::priorities.name());
if (!priorities->second.empty()) {
if (priorities!= full_property.end() && !priorities->second.empty()) {
auto meta_devices = parse_meta_devices(priorities->second.as<std::string>(), full_property);
std::unordered_set<std::string> supported_layers;
for (auto&& value : meta_devices) {