Skip to content

Commit d5b8787

Browse files
authored
Fix device format for OpenVINO Runtime
1 parent 5182cb4 commit d5b8787

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/accuracy_checker/accuracy_checker/evaluators/custom_evaluators/whisper_evaluator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2024 Intel Corporation
2+
Copyright (c) 2024-2025 Intel Corporation
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -54,7 +54,7 @@ def from_configs(cls, config, delayed_model_loading=False, orig_config=None):
5454
dataset_config = config["datasets"]
5555
pipeline_class_name = config["pipeline_class"]
5656
if 'device' in config['launchers'][0]:
57-
config["_device"] = config['launchers'][0]['device']
57+
config["_device"] = config['launchers'][0]['device'].upper()
5858

5959
if pipeline_class_name not in cls.VALID_PIPELINE_CLASSES:
6060
raise ValueError(f"Invalid pipeline class name: {pipeline_class_name}. "

0 commit comments

Comments
 (0)