Skip to content

Commit

Permalink
ci fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-gorokhov committed Jan 2, 2025
1 parent 5c248c9 commit 3645730
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/bindings/python/src/openvino/properties/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# SPDX-License-Identifier: Apache-2.0

# Enums
from openvino._pyopenvino.properties import Affinity
from openvino._pyopenvino.properties import CacheMode
from openvino._pyopenvino.properties import WorkloadType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# SPDX-License-Identifier: Apache-2.0

# Enums
from openvino._pyopenvino.properties import Affinity
from openvino._pyopenvino.properties import CacheMode
from openvino._pyopenvino.properties import WorkloadType

Expand Down
2 changes: 1 addition & 1 deletion tests/samples_tests/smoke_tests/test_benchmark_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def verify(sample_language, device, api=None, nireq=None, shape=None, data_shape
assert not nstreams or config_json['CPU']['NUM_STREAMS'] == nstreams
assert (not pin
or pin == 'YES' and config_json['CPU']['ENABLE_CPU_PINNING'] == 'YES'
or pin == 'NO' and config_json['CPU']['ENABLE_CPU_PINNING'] == 'NO'
or pin == 'NO' and config_json['CPU']['ENABLE_CPU_PINNING'] == 'NO')


@pytest.mark.parametrize('sample_language', ['C++', 'Python'])
Expand Down
4 changes: 1 addition & 3 deletions tools/benchmark_tool/openvino/tools/benchmark/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,8 +766,6 @@ def device_properties_to_string(config):
for sk, sv in v.items():
if isinstance(sv, bool):
sv = "YES" if sv else "NO"
if isinstance(sv, properties.Affinity):
sv = sv.name
sub_str += "{0}:{1},".format(sk, sv)
sub_str = sub_str[:-1]
sub_str += "}"
Expand Down Expand Up @@ -808,7 +806,7 @@ def dump_config(filename, config):
for key, value in device_config.items():
if isinstance(value, OVAny) and (isinstance(value.value, dict)):
value_string = device_properties_to_string(value.get())
elif isinstance(value, (properties.hint.PerformanceMode, properties.Affinity)):
elif isinstance(value, properties.hint.PerformanceMode):
value_string = value.name
elif isinstance(value, OVAny):
value_string = str(value.value)
Expand Down

0 comments on commit 3645730

Please sign in to comment.