Skip to content

Commit 81065fd

Browse files
committed
fix ci build error
1 parent e626de2 commit 81065fd

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

otherarch/ttscpp/src/ttscpp.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include "ttscpp.h"
22
#include <mutex>
3-
#include "llama-impl.h"
43

54
// A list of all of the top level GGUF names under kokoro.duration_predictor that have quantization compatible tensors.
65
static constexpr std::array<const char *, 5> DURATION_PREDICTOR_QUANTIZATION_COMPATIBLE_PARTS = {
@@ -338,6 +337,12 @@ static void zeros(std::ofstream & file, size_t n) {
338337
}
339338
}
340339

340+
template <typename T>
341+
struct do_no_init {
342+
T value;
343+
do_no_init() { /* do nothing */ }
344+
};
345+
341346
void quantize_gguf(const std::string & ifile, const std::string & ofile, struct quantization_params * params) {
342347
ggml_context * weight_ctx = NULL;
343348
struct gguf_init_params gguf_params = {
@@ -371,7 +376,7 @@ void quantize_gguf(const std::string & ifile, const std::string & ofile, struct
371376
}
372377
}
373378

374-
std::vector<no_init<uint8_t>> work;
379+
std::vector<do_no_init<uint8_t>> work;
375380

376381
std::ofstream fout;
377382
auto close_ofstream = [&]() {

0 commit comments

Comments
 (0)