Skip to content

Commit a9e5852

Browse files
committed
Fix un-initialized FP16 tables on x86 (abetlen#15, abetlen#2)
1 parent 7d9ed7b commit a9e5852

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

quantize.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,13 @@ int main(int argc, char ** argv) {
296296
return 1;
297297
}
298298

299+
// needed to initialize f16 tables
300+
{
301+
struct ggml_init_params params = { 0, NULL };
302+
struct ggml_context * ctx = ggml_init(params);
303+
ggml_free(ctx);
304+
}
305+
299306
const std::string fname_inp = argv[1];
300307
const std::string fname_out = argv[2];
301308

0 commit comments

Comments
 (0)