Fix macos build.

This commit is contained in:
Adam Treat 2023-11-14 10:51:10 -05:00 committed by AT
parent 371e2a5cbc
commit cce5fe2045

View File

@ -490,8 +490,10 @@ struct bert_ctx * bert_load_from_file(const char *fname)
#endif
bert_ctx * new_bert = new bert_ctx;
#if defined(GGML_USE_KOMPUTE)
new_bert->buf_compute.force_cpu = true;
new_bert->work_buf.force_cpu = true;
#endif
bert_model & model = new_bert->model;
bert_vocab & vocab = new_bert->vocab;