Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Added HW plugin properties to supported properties in AUTO_BATCH plugin #29633

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/plugins/auto_batch/src/compiled_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,13 @@ ov::Any CompiledModel::get_property(const std::string& name) const {
} else if (name == ov::loaded_from_cache) {
return m_compiled_model_without_batch->get_property(ov::loaded_from_cache.name());
} else if (name == ov::supported_properties) {
return std::vector<ov::PropertyName>{
auto device_supported_props = m_compiled_model_without_batch->get_property(ov::supported_properties.name())
.as<std::vector<ov::PropertyName>>();
std::vector<ov::PropertyName> properties{
ov::PropertyName{ov::supported_properties.name(), ov::PropertyMutability::RO},
ov::PropertyName{ov::optimal_number_of_infer_requests.name(), ov::PropertyMutability::RO},
ov::PropertyName{ov::model_name.name(), ov::PropertyMutability::RO},
ov::PropertyName{ov::execution_devices.name(), ov::PropertyMutability::RO},
ov::PropertyName{ov::auto_batch_timeout.name(), ov::PropertyMutability::RW}};
properties.insert(properties.end(), device_supported_props.begin(), device_supported_props.end());
return properties;
} else if (name == ov::auto_batch_timeout) {
uint32_t time_out = m_time_out;
return time_out;
Expand Down