Skip to content

Commit 6614e94

Browse files
committed
Fixed model name to check cache_position input
1 parent 7e29a70 commit 6614e94

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/cpp/src/whisper/models/with_past_decoder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ WhisperWithPastDecoder::WhisperWithPastDecoder(const std::filesystem::path& mode
8989

9090
ov::Core core = utils::singleton_core();
9191

92-
m_has_cache_position = utils::has_input(core.read_model(models_path / "openvino_decoder_model.xml"), "cache_position");
93-
9492
auto compiled_model = core.compile_model(models_path / "openvino_decoder_model.xml", device, properties);
9593
utils::print_compiled_model_properties(compiled_model, "whisper decoder model");
9694
m_request_decoder = compiled_model.create_infer_request();
9795

96+
m_has_cache_position =
97+
utils::has_input(core.read_model(models_path / "openvino_decoder_with_past_model.xml"), "cache_position");
9898
compiled_model = core.compile_model(models_path / "openvino_decoder_with_past_model.xml", device, properties);
9999
utils::print_compiled_model_properties(compiled_model, "whisper decoder with past model");
100100
m_request_decoder_with_past = compiled_model.create_infer_request();

src/cpp/src/whisper/whisper_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2024-2025 Intel Corporation
1+
// Copyright (C) 2024 Intel Corporation
22
// SPDX-License-Identifier: Apache-2.0
33

44
#include "whisper/whisper_utils.hpp"

src/cpp/src/whisper/whisper_utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (C) 2024-2025 Intel Corporation
1+
// Copyright (C) 2024 Intel Corporation
22
// SPDX-License-Identifier: Apache-2.0
33

44
#pragma once

0 commit comments

Comments
 (0)