mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-24 18:34:36 +00:00
Remove obsolete assert and fix compiler warning
This commit is contained in:
parent
2a2e63ce05
commit
6b6dbc8910
2
ggml.c
2
ggml.c
@ -6317,8 +6317,6 @@ static void ggml_compute_forward_mul_mat_f16_f32(
|
|||||||
|
|
||||||
float * dst_col = (float *) ((char *) dst->data + (i0*nb0 + 0*nb1 + i2*nb2 + i3*nb3));
|
float * dst_col = (float *) ((char *) dst->data + (i0*nb0 + 0*nb1 + i2*nb2 + i3*nb3));
|
||||||
|
|
||||||
assert(ne00 % 32 == 0);
|
|
||||||
|
|
||||||
for (int ic = 0; ic < ne11; ++ic) {
|
for (int ic = 0; ic < ne11; ++ic) {
|
||||||
ggml_vec_dot_f16(ne00, &dst_col[ic*ne0], src0_row, src1_col + ic*ne00);
|
ggml_vec_dot_f16(ne00, &dst_col[ic*ne0], src0_row, src1_col + ic*ne00);
|
||||||
}
|
}
|
||||||
|
2
main.cpp
2
main.cpp
@ -478,7 +478,7 @@ int main(int argc, char ** argv) {
|
|||||||
std::string buffer;
|
std::string buffer;
|
||||||
if (!params.input_prefix.empty()) {
|
if (!params.input_prefix.empty()) {
|
||||||
buffer += params.input_prefix;
|
buffer += params.input_prefix;
|
||||||
printf(buffer.c_str());
|
printf("%s", buffer.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string line;
|
std::string line;
|
||||||
|
Loading…
Reference in New Issue
Block a user