[fix] Put ggml_tmac_init at correct place.

This commit is contained in:
Qingtao Li 2024-11-06 13:39:12 +08:00
parent 55a86969b8
commit 3f7d85da1e
2 changed files with 5 additions and 4 deletions

View file

@ -13891,10 +13891,6 @@ void ggml_cpu_init(void) {
ggml_init_arm_arch_features();
#endif
#if defined(GGML_USE_TMAC)
ggml_tmac_init();
#endif
is_first_call = false;
}

View file

@ -1453,6 +1453,11 @@ struct ggml_context * ggml_init(struct ggml_init_params params) {
} u = {i};
ggml_table_f32_f16[i] = GGML_COMPUTE_FP16_TO_FP32(u.fp16);
}
#if defined(GGML_USE_TMAC)
ggml_tmac_init();
#endif
is_first_call = true;
}