Skip to content

Commit 35da669

Browse files
committed
fixes for GCC.
1 parent ff5228e commit 35da669

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

models/qwen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,9 +635,9 @@ namespace audio_tower
635635

636636
protected:
637637
Embedding embed_positions;
638-
LayerNorm layer_norm;
639638
Conv1D conv1;
640639
Conv1D conv2;
640+
LayerNorm layer_norm;
641641
Linear multi_modal_projector;
642642
std::vector<std::unique_ptr<LayerBlock>> layers;
643643
protected:

src/audio_process.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ namespace audio
348348
{
349349
const auto &f = filters.filters[j];
350350
const int off = f.offset;
351-
int k = 0;
351+
size_t k = 0;
352352
float sum = 0.0f;
353353
for (; k + 3 < f.weights.size(); k += 4)
354354
{
@@ -362,7 +362,7 @@ namespace audio
362362
sum += f.weights[k + 0] * fft_out[off + k + 0];
363363
}
364364

365-
mel.data[j * mel.n_len + i] = std::log10f(std::max(1e-10f, sum));
365+
mel.data[j * mel.n_len + i] = log10f(std::max(1e-10f, sum));
366366
}
367367
}
368368

0 commit comments

Comments
 (0)