mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-01-03 20:48:59 +01:00
whisper : fix possible uninitialized variables (#291)
This commit is contained in:
parent
c9aeb33676
commit
8088a977af
@ -3091,10 +3091,10 @@ static std::vector<whisper_token_data> whisper_sample_token_topk(
|
|||||||
std::vector<whisper_token_data> result;
|
std::vector<whisper_token_data> result;
|
||||||
result.reserve(k);
|
result.reserve(k);
|
||||||
|
|
||||||
whisper_token tid;
|
whisper_token tid = vocab.token_beg;
|
||||||
|
|
||||||
float pt;
|
float pt = 0.0;
|
||||||
float ptsum;
|
float ptsum = 0.0;
|
||||||
|
|
||||||
{
|
{
|
||||||
double sum_ts = 0.0;
|
double sum_ts = 0.0;
|
||||||
|
Loading…
Reference in New Issue
Block a user