aboutsummaryrefslogtreecommitdiff
path: root/examples/embedding
diff options
context:
space:
mode:
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