ggml : add helper debug printf in soft_max

This commit is contained in:
Georgi Gerganov 2023-04-28 17:58:44 +03:00
parent 7296c961d9
commit 11d902364b
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

1
ggml.c
View file

@ -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 {