From 6816522ea759e8b9c52b3b22741c77ae1d804dc2 Mon Sep 17 00:00:00 2001 From: Yann Follet Date: Wed, 22 May 2024 10:40:04 +0000 Subject: [PATCH] Trailing whitespace --- common/common.cpp | 2 +- examples/embedding/README.md | 4 ++-- examples/embedding/embedding.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/common.cpp b/common/common.cpp index aa920f12e..47240b880 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -2589,7 +2589,7 @@ void dump_kv_cache_view_seqs(const llama_kv_cache_view & view, int row_size) { void llama_embd_normalize(const float * inp, float * out, int n, int embd_norm) { double sum = 0.0; - + switch (embd_norm) { case -1: // no normalisation sum = 1.0; diff --git a/examples/embedding/README.md b/examples/embedding/README.md index 9b573ced3..a3c0bda24 100644 --- a/examples/embedding/README.md +++ b/examples/embedding/README.md @@ -43,8 +43,8 @@ The above command will output space-separated float values. | $"string"$ | | |--------------|-| | "\n" | (default) -| "<#embSep#>" | for exemple -| "<#sep#>" | other exemple +| "<#embSep#>" | for exemple +| "<#sep#>" | other exemple ## examples ### Unix-based systems (Linux, macOS, etc.): diff --git a/examples/embedding/embedding.cpp b/examples/embedding/embedding.cpp index 6c8fc4831..bbe33377c 100644 --- a/examples/embedding/embedding.cpp +++ b/examples/embedding/embedding.cpp @@ -192,7 +192,7 @@ int main(int argc, char ** argv) { for (int j = 0; j < n_prompts; j++) { fprintf(stdout, "embedding %d: ", j); for (int i = 0; i < (n_prompts > 1 ? std::min(16, n_embd) : n_embd); i++) { - if (params.embd_normalize==0) + if (params.embd_normalize==0) fprintf(stdout, "%6.0f ", emb[j * n_embd + i]); else fprintf(stdout, "%9.6f ", emb[j * n_embd + i]);