Fix un-initialized FP16 tables on x86 (#15, #2)

This commit is contained in:
Georgi Gerganov 2023-03-11 17:40:14 +02:00
parent 7d9ed7b25f
commit a9e58529ea

View File

@ -296,6 +296,13 @@ int main(int argc, char ** argv) {
return 1;
}
// needed to initialize f16 tables
{
struct ggml_init_params params = { 0, NULL };
struct ggml_context * ctx = ggml_init(params);
ggml_free(ctx);
}
const std::string fname_inp = argv[1];
const std::string fname_out = argv[2];