mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 05:48:47 +01:00
ggml : add helper debug printf in soft_max
This commit is contained in:
parent
7296c961d9
commit
11d902364b
1
ggml.c
1
ggml.c
@ -9257,6 +9257,7 @@ static void ggml_compute_forward_soft_max_f32(
|
|||||||
|
|
||||||
uint16_t scvt;
|
uint16_t scvt;
|
||||||
for (int i = 0; i < nc; i++) {
|
for (int i = 0; i < nc; i++) {
|
||||||
|
//printf("p[%3d] = %8.4f\n", i, p[i]);
|
||||||
if (p[i] == -INFINITY) {
|
if (p[i] == -INFINITY) {
|
||||||
p[i] = 0.0f;
|
p[i] = 0.0f;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user