fix bug in ggml_compute_forward_soft_max_back_f32 on DEBUG build
This commit is contained in:
parent
69108167cd
commit
1f2b76de01
1 changed files with 2 additions and 2 deletions
4
ggml.c
4
ggml.c
|
@ -10565,8 +10565,8 @@ static void ggml_compute_forward_soft_max_back_f32(
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
for (int i = 0; i < nc; ++i) {
|
for (int i = 0; i < nc; ++i) {
|
||||||
//printf("p[%d] = %f\n", i, p[i]);
|
//printf("p[%d] = %f\n", i, p[i]);
|
||||||
assert(!isnan(s0[i]));
|
assert(!isnan(dy[i]));
|
||||||
assert(!isnan(s1[i]));
|
assert(!isnan(y[i]));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
// Jii = yi - yi*yi
|
// Jii = yi - yi*yi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue