File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -5148,8 +5148,6 @@ static struct ggml_tensor * ggml_soft_plus_impl(
5148
5148
struct ggml_tensor * a,
5149
5149
bool inplace) {
5150
5150
5151
- // TODO: does `a` need to be contiguous?
5152
-
5153
5151
bool is_node = false;
5154
5152
5155
5153
if (a->grad) {
@@ -11736,7 +11734,7 @@ static void ggml_compute_forward_soft_plus_f32(
11736
11734
float * x = (float *) ((char *) dst->data + i*( dst->nb[1]));
11737
11735
float * y = (float *) ((char *) src0->data + i*(src0->nb[1]));
11738
11736
for (int j = 0; j < nc; ++j) {
11739
- x[j] = logf(1.0f + expf(y[i ]));
11737
+ x[j] = logf(1.0f + expf(y[j ]));
11740
11738
}
11741
11739
}
11742
11740
}
Original file line number Diff line number Diff line change @@ -6946,7 +6946,6 @@ struct llm_build_context {
6946
6946
cur = llm_build_norm (ctx0, inpL, hparams,
6947
6947
model.layers [il].attn_norm , NULL ,
6948
6948
LLM_NORM_RMS, cb, il);
6949
- // TODO: that's probably the wrong name.
6950
6949
cb (cur, " attn_norm" , il);
6951
6950
6952
6951
// {n_embd, batch} * {n_embd, 2*d_inner} = {batch, 2*d_inner}
You can’t perform that action at this time.
0 commit comments