[PyOV] Expose missed properties (#19678)

This commit is contained in:
Anastasia Kuporosova 2023-09-12 10:45:10 +02:00 committed by GitHub
parent a6bc78dd0f
commit 3c1b384694
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,8 @@ from openvino._pyopenvino.properties import range_for_streams
from openvino._pyopenvino.properties import optimal_batch_size
from openvino._pyopenvino.properties import max_batch_size
from openvino._pyopenvino.properties import range_for_async_infer_requests
from openvino._pyopenvino.properties import execution_devices
from openvino._pyopenvino.properties import loaded_from_cache
# Submodules
from openvino.runtime.properties import hint

View File

@ -40,6 +40,8 @@ void regmodule_properties(py::module m) {
wrap_property_RO(m_properties, ov::optimal_batch_size, "optimal_batch_size");
wrap_property_RO(m_properties, ov::max_batch_size, "max_batch_size");
wrap_property_RO(m_properties, ov::range_for_async_infer_requests, "range_for_async_infer_requests");
wrap_property_RO(m_properties, ov::execution_devices, "execution_devices");
wrap_property_RO(m_properties, ov::loaded_from_cache, "loaded_from_cache");
// Submodule hint
py::module m_hint =

View File

@ -153,6 +153,8 @@ def test_conflicting_enum(proxy_enums, expected_values):
(properties.optimal_batch_size, "OPTIMAL_BATCH_SIZE"),
(properties.max_batch_size, "MAX_BATCH_SIZE"),
(properties.range_for_async_infer_requests, "RANGE_FOR_ASYNC_INFER_REQUESTS"),
(properties.execution_devices, "EXECUTION_DEVICES"),
(properties.loaded_from_cache, "LOADED_FROM_CACHE"),
(properties.device.full_name, "FULL_DEVICE_NAME"),
(properties.device.architecture, "DEVICE_ARCHITECTURE"),
(properties.device.type, "DEVICE_TYPE"),