]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
embedding : remove unused code (#1426)
authorRinne <redacted>
Sat, 13 May 2023 07:24:20 +0000 (15:24 +0800)
committerGitHub <redacted>
Sat, 13 May 2023 07:24:20 +0000 (10:24 +0300)
examples/embedding/embedding.cpp

index e4b729128b5717f0dbb52458ba4d281401cb3b55..bb3fd50a9f9818ef74874910d0e5bc2ec2858429 100644 (file)
@@ -56,9 +56,6 @@ int main(int argc, char ** argv) {
     // tokenize the prompt
     auto embd_inp = ::llama_tokenize(ctx, params.prompt, true);
 
-    // determine newline token
-    auto llama_token_newline = ::llama_tokenize(ctx, "\n", false);
-
     if (params.verbose_prompt) {
         fprintf(stderr, "\n");
         fprintf(stderr, "%s: prompt: '%s'\n", __func__, params.prompt.c_str());