We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50d839a commit c4a270bCopy full SHA for c4a270b
ggml_extend.hpp
@@ -1309,11 +1309,11 @@ class Linear : public UnaryBlock {
1309
out = ggml_add(ctx, act, b);
1310
}
1311
1312
+ auto ne = x->ne[0];
1313
auto im = ggml_mul_mat(ctx, x, w);
- auto ne = im->ne[0];
1314
1315
auto empty = ggml_new_tensor_1d(ctx, GGML_TYPE_F32, ne);
1316
- auto eyev = ggml_set_f32(eye, 1.0f);
+ auto eyev = ggml_set_f32(empty, 1.0f);
1317
auto eye = ggml_diag(ctx, eyev);
1318
auto imm = ggml_mul_mat(ctx, im, eye);
1319
auto ims = ggml_sum_rows(ctx, imm);
@@ -1324,7 +1324,7 @@ class Linear : public UnaryBlock {
1324
print_ggml_tensor(w, true, "imatrix w");
1325
print_ggml_tensor(act, true, "imatrix act");
1326
print_ggml_tensor(im, true, "imatrix im");
1327
- print_ggml_tensor(imv, true, "imatrix imv");
+ print_ggml_tensor(imv, false, "imatrix imv");
1328
return out == NULL ? act : out;
1329
1330
};
0 commit comments