Disable core::set_property() to support ov::device::properties setting (#15175)
* Disable set_property() to support ov::device::properties setting.
* Update benchmark APP to set device properties through compile_model() instead of through set_property().
* Update.
* Update.
* Update some test case including ov::device::properties setting via core.ser_property().
* Since core.set_property() didn't support ov::device::properties setting, just remove the test case to check compile_model() works well if setting ov::device::properties via core.set_property() first.
* Update CompileModel in test name to CompiledModel
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
* Add corresponding test case.
Signed-off-by: Wang, Yang <yang4.wang@intel.com>
* Update.
* Update.
* Remove the changes of this commit as this modification has nothing to do
with this PR.
This reverts commit 4f04b9f085.
---------
Signed-off-by: Wang, Yang <yang4.wang@intel.com>
Co-authored-by: Chen Peter <peter.chen@intel.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
This commit is contained in:
7 files changed
+49
-76
No files matched your search
@@ -322,7 +322,10 @@ def main():
|
||||
del device_number_streams[device]
|
||||
|
||||
perf_counts = perf_counts
|
||||
benchmark.set_config(config)
|
||||
device_config = {}
|
||||
for device in config:
|
||||
if benchmark.device.find(device) == 0:
|
||||
device_config = config[device]
|
||||
if args.cache_dir:
|
||||
benchmark.set_cache_dir(args.cache_dir)
|
||||
|
||||
@@ -348,7 +351,7 @@ def main():
|
||||
next_step()
|
||||
|
||||
start_time = datetime.utcnow()
|
||||
compiled_model = benchmark.core.compile_model(args.path_to_model, benchmark.device)
|
||||
compiled_model = benchmark.core.compile_model(args.path_to_model, benchmark.device, device_config)
|
||||
duration_ms = f"{(datetime.utcnow() - start_time).total_seconds() * 1000:.2f}"
|
||||
logger.info(f"Compile model took {duration_ms} ms")
|
||||
if statistics:
|
||||
@@ -411,7 +414,7 @@ def main():
|
||||
next_step()
|
||||
|
||||
start_time = datetime.utcnow()
|
||||
compiled_model = benchmark.core.compile_model(model, benchmark.device)
|
||||
compiled_model = benchmark.core.compile_model(model, benchmark.device, device_config)
|
||||
duration_ms = f"{(datetime.utcnow() - start_time).total_seconds() * 1000:.2f}"
|
||||
logger.info(f"Compile model took {duration_ms} ms")
|
||||
if statistics:
|
||||
|
||||
Reference in new issue
Block a user