Skip to content

Commit 36b4230

Browse files
Rename set_config->set_property, get_config->get_property
1 parent 29873fa commit 36b4230

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

demos/3d_segmentation_demo/python/3d_segmentation_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,10 @@ def main():
254254
if args.path_to_extension:
255255
core.add_extension(args.path_to_extension, "CPU")
256256
if args.number_threads is not None:
257-
core.set_config({'CPU_THREADS_NUM': str(args.number_threads)}, "CPU")
257+
core.set_property("CPU", {'CPU_THREADS_NUM': str(args.number_threads)})
258258
elif 'GPU' in args.target_device:
259259
if args.path_to_cldnn_config:
260-
core.set_config({'CONFIG_FILE': args.path_to_cldnn_config}, "GPU")
260+
core.set_property("GPU", {'CONFIG_FILE': args.path_to_cldnn_config})
261261
else:
262262
raise AttributeError("Device {} do not support of 3D convolution. "
263263
"Please use CPU, GPU or HETERO:*CPU*, HETERO:*GPU*")

demos/action_recognition_demo/python/action_recognition_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def main():
8989

9090
if 'MYRIAD' in args.device:
9191
myriad_config = {'VPU_HW_STAGES_OPTIMIZATION': 'YES'}
92-
core.set_config(myriad_config, 'MYRIAD')
92+
core.set_property('MYRIAD', myriad_config)
9393

9494
decoder_target_device = 'CPU'
9595
if args.device != 'CPU':

demos/common/python/openvino/model_zoo/model_api/adapters/openvino_adapter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ def log_runtime_settings(self):
7777
if 'AUTO' not in devices:
7878
for device in devices:
7979
try:
80-
nstreams = self.exec_net.get_config(device + '_THROUGHPUT_STREAMS')
80+
nstreams = self.exec_net.get_property(device + '_THROUGHPUT_STREAMS')
8181
log.info('\tDevice: {}'.format(device))
8282
log.info('\t\tNumber of streams: {}'.format(nstreams))
8383
if device == 'CPU':
84-
nthreads = self.exec_net.get_config('CPU_THREADS_NUM')
84+
nthreads = self.exec_net.get_property('CPU_THREADS_NUM')
8585
log.info('\t\tNumber of threads: {}'.format(nthreads if int(nthreads) else 'AUTO'))
8686
except RuntimeError:
8787
pass

demos/handwritten_text_recognition_demo/python/handwritten_text_recognition_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def main():
7777
log.info('OpenVINO Inference Engine')
7878
log.info('\tbuild: {}'.format(get_version()))
7979
core = Core()
80-
core.set_config(config={"GPU_ENABLE_LOOP_UNROLLING": "NO", "CACHE_DIR": "./"}, device_name="GPU")
80+
core.set_property("GPU", {"GPU_ENABLE_LOOP_UNROLLING": "NO", "CACHE_DIR": "./"})
8181

8282
# Read IR
8383
log.info('Reading model {}'.format(args.model))

0 commit comments

Comments
 (0)