clang-format

This commit is contained in:
Pascal
2026-05-10 22:20:47 +02:00
parent c3bd376338
commit 7e01c71c58
4 changed files with 24 additions and 22 deletions
+3 -1
View File
@@ -95,7 +95,9 @@ std::vector<float> pipeline_codec_decode(PipelineCodec * pc, const int32_t * cod
// codec-pre-fsq.bin under that directory. Quiet otherwise.
// Returns codes flat as [K, T] row-major, K = QWEN_TOKENIZER_NUM_CODEBOOKS,
// T = n_samples / 1920. Empty on failure.
std::vector<int32_t> pipeline_codec_encode(PipelineCodec * pc, const float * audio, int n_samples,
std::vector<int32_t> pipeline_codec_encode(PipelineCodec * pc,
const float * audio,
int n_samples,
const char * dump_dir = NULL);
// Free every backend buffer and ggml context. Safe to call on a zeroed struct.
+2 -3
View File
@@ -130,9 +130,8 @@ static bool speaker_encoder_extract(const SpeakerEncoderWeights * sw,
struct ggml_tensor * mfa_dump = NULL;
struct ggml_tensor * asp_t = NULL;
struct ggml_tensor * asp_dump = NULL;
struct ggml_tensor * emb =
speaker_encoder_forward(gctx, sw, audio_in, hann_in, dft_re_in, dft_im_in, mel_b_in, mel_cfg,
&mel_t, &mag_t, &front_t, &blk3_t, &mfa_t, &asp_t);
struct ggml_tensor * emb = speaker_encoder_forward(gctx, sw, audio_in, hann_in, dft_re_in, dft_im_in, mel_b_in,
mel_cfg, &mel_t, &mag_t, &front_t, &blk3_t, &mfa_t, &asp_t);
ggml_set_output(emb);
if (dump_dir && mel_t) {
// mel_t has ggml ne=(n_mels, T_frames), which streams row-major
+2 -1
View File
@@ -301,7 +301,8 @@ static struct ggml_tensor * speaker_encoder_forward(struct ggml_context *
struct ggml_tensor ** mfa_out = NULL,
struct ggml_tensor ** asp_out = NULL) {
// Mel : [n_mels=128, T_frames]
struct ggml_tensor * mel = audio_mel_build_graph(ctx, audio_padded, hann, dft_real, dft_imag, mel_basis, mel_cfg, mag_out);
struct ggml_tensor * mel =
audio_mel_build_graph(ctx, audio_padded, hann, dft_real, dft_imag, mel_basis, mel_cfg, mag_out);
if (mel_out) {
*mel_out = mel;
}