Skip to content

Commit 458c365

Browse files
committed
format code
1 parent 27272ef commit 458c365

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ggml_extend.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -958,9 +958,9 @@ __STATIC_INLINE__ struct ggml_tensor* ggml_nn_linear(struct ggml_context* ctx,
958958
// workaround: avoid ggml cuda error
959959
int64_t ne2 = x->ne[2];
960960
int64_t ne3 = x->ne[3];
961-
x = ggml_reshape_2d(ctx, x, x->ne[0], x->ne[1]*x->ne[2]*x->ne[3]);
962-
x = ggml_mul_mat(ctx, w, x);
963-
x = ggml_reshape_4d(ctx, x, x->ne[0], x->ne[1]/ne2/ne3, ne2, ne3);
961+
x = ggml_reshape_2d(ctx, x, x->ne[0], x->ne[1] * x->ne[2] * x->ne[3]);
962+
x = ggml_mul_mat(ctx, w, x);
963+
x = ggml_reshape_4d(ctx, x, x->ne[0], x->ne[1] / ne2 / ne3, ne2, ne3);
964964
} else {
965965
x = ggml_mul_mat(ctx, w, x);
966966
}

0 commit comments

Comments
 (0)