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

pull/16/head
Georgi Gerganov 2 years ago
parent 7d9ed7b25f
commit a9e58529ea

@ -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];

Loading…
Cancel
Save