mirror of
https://git.adityakumar.xyz/llama.cpp.git
synced 2024-11-09 23:29:44 +00:00
ggml : add helper debug printf in soft_max
This commit is contained in:
parent
7296c961d9
commit
11d902364b
1 changed files with 1 additions and 0 deletions
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 a new issue