Fix publishing pre-built windows libraries (#1905)

This commit is contained in:
Fangjun Kuang
2025-02-21 11:59:27 +08:00
committed by GitHub
parent 9c810ce3fe
commit ed922e61b5
4 changed files with 169 additions and 144 deletions

View File

@@ -124,6 +124,9 @@ OfflineWhisperGreedySearchDecoder::Decode(Ort::Value cross_k,
std::get<5>(decoder_out).GetTensorMutableData<int64_t>();
*p_offset += 1;
if (*p_offset >= n_text_ctx - 1) {
break;
}
const auto &logits = std::get<0>(decoder_out);
const float *p_logits = logits.GetTensorData<float>();