mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-08 18:30:50 +00:00
fixed compile issue
This commit is contained in:
parent
55524e160b
commit
5b54fee042
1 changed files with 3 additions and 3 deletions
|
|
@ -338,9 +338,9 @@ static void zeros(std::ofstream & file, size_t n) {
|
|||
}
|
||||
|
||||
template <typename T>
|
||||
struct no_init {
|
||||
struct do_no_init {
|
||||
T value;
|
||||
no_init() { /* do nothing */ }
|
||||
do_no_init() { /* do nothing */ }
|
||||
};
|
||||
|
||||
void quantize_gguf(const std::string & ifile, const std::string & ofile, struct quantization_params * params) {
|
||||
|
|
@ -376,7 +376,7 @@ void quantize_gguf(const std::string & ifile, const std::string & ofile, struct
|
|||
}
|
||||
}
|
||||
|
||||
std::vector<no_init<uint8_t>> work;
|
||||
std::vector<do_no_init<uint8_t>> work;
|
||||
|
||||
std::ofstream fout;
|
||||
auto close_ofstream = [&]() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue