Skip to content

Commit 7b99865

Browse files
committed
Use LOG instead of printf for raw embedding output
1 parent 883e07a commit 7b99865

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/embedding/embedding.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ static void print_raw_embeddings(const float * emb,
8585
for (int j = 0; j < n_embd_count; ++j) {
8686
for (int i = 0; i < cols; ++i) {
8787
if (embd_normalize == 0) {
88-
printf("%1.0f%s", emb[j * n_embd + i], (i + 1 < cols ? " " : ""));
88+
LOG("%1.0f%s", emb[j * n_embd + i], (i + 1 < cols ? " " : ""));
8989
} else {
90-
printf("%1.7f%s", emb[j * n_embd + i], (i + 1 < cols ? " " : ""));
90+
LOG("%1.7f%s", emb[j * n_embd + i], (i + 1 < cols ? " " : ""));
9191
}
9292
}
93-
printf("\n");
93+
LOG("\n");
9494
}
9595
}
9696

0 commit comments

Comments
 (0)