ggml: remove bad assert (ggml/928)

This commit is contained in:
Johannes Gäßler 2024-08-24 19:27:02 +02:00 committed by Georgi Gerganov
parent 1fbd828a5d
commit df06468d9e

View File

@ -3745,7 +3745,6 @@ static struct ggml_tensor * ggml_new_tensor_impl(
size_t data_size = ggml_row_size(type, ne[0]);
for (int i = 1; i < n_dims; i++) {
assert(ne[i] > 0);
data_size *= ne[i];
}