[PYTHON][CAPI][AUTO] Add ENABLE_STARTUP_FALLBACK and ENABLE_RUNTIME_FALLBACK proper… (#16436)
* [AUTO] Add ENABLE_STARTUP_FALLBACK and ENABLE_RUNTIME_FALLBACK properties to Python API * Add DEVICE_BIND_BUFFER property * Add AUTO properties to C API * Update test case && Update AUTO properties in PYTHON API * Create dedicated files for auto plugin * Update header files * Update test case * Modify code style * Update variable name * Add test case for invalid input value
This commit is contained in:
1 parent
e978db3132
commit
99eda5b5e1
8 files changed
+139
-1
No files matched your search
@@ -271,4 +271,13 @@ void regmodule_properties(py::module m) {
|
||||
m_streams.def("num", [](const int32_t value) {
|
||||
return ov::streams::num(ov::streams::Num(value));
|
||||
});
|
||||
|
||||
// Submodule auto
|
||||
py::module m_intel_auto =
|
||||
m_properties.def_submodule("intel_auto",
|
||||
"openvino.runtime.properties.intel_auto submodule that simulates ov::intel_auto");
|
||||
|
||||
wrap_property_RW(m_intel_auto, ov::intel_auto::device_bind_buffer, "device_bind_buffer");
|
||||
wrap_property_RW(m_intel_auto, ov::intel_auto::enable_startup_fallback, "enable_startup_fallback");
|
||||
wrap_property_RW(m_intel_auto, ov::intel_auto::enable_runtime_fallback, "enable_runtime_fallback");
|
||||
}
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "openvino/runtime/properties.hpp"
|
||||
#include "openvino/runtime/intel_cpu/properties.hpp"
|
||||
#include "openvino/runtime/intel_gpu/properties.hpp"
|
||||
#include "openvino/runtime/auto/properties.hpp"
|
||||
#include "pyopenvino/core/properties/properties.hpp"
|
||||
|
||||
namespace py = pybind11;
|
||||
|
||||
@@ -268,6 +268,36 @@ def test_properties_ro(ov_property_ro, expected_value):
|
||||
(2.0, 2.0),
|
||||
),
|
||||
),
|
||||
(
|
||||
properties.intel_auto.device_bind_buffer,
|
||||
"DEVICE_BIND_BUFFER",
|
||||
(
|
||||
(True, True),
|
||||
(False, False),
|
||||
(1, True),
|
||||
(0, False),
|
||||
),
|
||||
),
|
||||
(
|
||||
properties.intel_auto.enable_startup_fallback,
|
||||
"ENABLE_STARTUP_FALLBACK",
|
||||
(
|
||||
(True, True),
|
||||
(False, False),
|
||||
(1, True),
|
||||
(0, False),
|
||||
),
|
||||
),
|
||||
(
|
||||
properties.intel_auto.enable_runtime_fallback,
|
||||
"ENABLE_RUNTIME_FALLBACK",
|
||||
(
|
||||
(True, True),
|
||||
(False, False),
|
||||
(1, True),
|
||||
(0, False),
|
||||
),
|
||||
),
|
||||
(properties.device.id, "DEVICE_ID", (("0", "0"),)),
|
||||
(
|
||||
properties.log.level,
|
||||
|
||||
Reference in new issue
Block a user