We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 883e07a commit ce7b187Copy full SHA for ce7b187
examples/embedding/embedding.cpp
@@ -4,7 +4,6 @@
4
#include "llama.h"
5
6
#include <ctime>
7
-#include <cstdio>
8
#include <algorithm>
9
10
#if defined(_MSC_VER)
@@ -85,12 +84,12 @@ static void print_raw_embeddings(const float * emb,
85
84
for (int j = 0; j < n_embd_count; ++j) {
86
for (int i = 0; i < cols; ++i) {
87
if (embd_normalize == 0) {
88
- printf("%1.0f%s", emb[j * n_embd + i], (i + 1 < cols ? " " : ""));
+ LOG("%1.0f%s", emb[j * n_embd + i], (i + 1 < cols ? " " : ""));
89
} else {
90
- printf("%1.7f%s", emb[j * n_embd + i], (i + 1 < cols ? " " : ""));
+ LOG("%1.7f%s", emb[j * n_embd + i], (i + 1 < cols ? " " : ""));
91
}
92
93
- printf("\n");
+ LOG("\n");
94
95
96
0 commit comments