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 3a03459 commit e5b89a4Copy full SHA for e5b89a4
ggml.c
@@ -2938,7 +2938,7 @@ static struct ggml_tensor * ggml_new_tensor_impl(
2938
data_size *= ne[i];
2939
}
2940
2941
- GGML_ASSERT(view_src == NULL || data_size + view_offs <= ggml_nbytes(view_src));
+ GGML_ASSERT(view_src == NULL || data_size == 0 || data_size + view_offs <= ggml_nbytes(view_src));
2942
2943
void * data = view_src != NULL ? view_src->data : NULL;
2944
if (data != NULL) {
0 commit comments