aboutsummaryrefslogtreecommitdiff
path: root/examples/embedding
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2023-05-20 11:06:11 +0300
committerGeorgi Gerganov <ggerganov@gmail.com>2023-05-20 11:06:37 +0300
commitec2e10c4443209da56b431b24dd0845b60e757fb (patch)
tree0a285ebbdd3efa99eb60042631ddd86ae6dedd00 /examples/embedding
parentd2c59b8ba498ab01e65203dde6fe95236d20f6e7 (diff)
llama : add llama_init_backend() API (close #1527)
Diffstat (limited to 'examples/embedding')
-rw-r--r--examples/embedding/embedding.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/embedding/embedding.cpp b/examples/embedding/embedding.cpp
index c24f7f8..03603b1 100644
--- a/examples/embedding/embedding.cpp
+++ b/examples/embedding/embedding.cpp
@@ -31,6 +31,8 @@ int main(int argc, char ** argv) {
params.prompt = gpt_random_prompt(rng);
}
+ llama_init_backend();
+
llama_context * ctx;
// load the model