Skip to content

Commit 6508f95

Browse files
committed
Polishing
1 parent 6614e94 commit 6508f95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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
@@ -93,7 +93,7 @@ WhisperWithPastDecoder::WhisperWithPastDecoder(const std::filesystem::path& mode
9393
utils::print_compiled_model_properties(compiled_model, "whisper decoder model");
9494
m_request_decoder = compiled_model.create_infer_request();
9595

96-
m_has_cache_position =
96+
m_past_decoder_has_cache_position =
9797
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");
@@ -113,7 +113,7 @@ void WhisperWithPastDecoder::start_async(const Tensor& encoder_hidden_state,
113113
request.set_tensor("input_ids", input_ids);
114114

115115
if (!is_initial_step) {
116-
if (m_has_cache_position) {
116+
if (m_past_decoder_has_cache_position) {
117117
ov::Tensor cache_position_tensor = request.get_tensor("cache_position");
118118
cache_position_tensor.set_shape({1});
119119
cache_position_tensor.data<int64_t>()[0] = m_cache_position;

0 commit comments

Comments
 (0)