ggml : fix ggml_soft_max mask requirement

This commit is contained in:
Georgi Gerganov 2024-02-01 16:41:02 +02:00
parent 8ad92dc1ec
commit 910b15bb40
No known key found for this signature in database
GPG Key ID: BF970631944C16B7

2
ggml.c
View File

@ -5089,7 +5089,7 @@ static struct ggml_tensor * ggml_soft_max_impl(
GGML_ASSERT(ggml_is_contiguous(mask));
GGML_ASSERT(mask->ne[2] == 1);
GGML_ASSERT(mask->ne[3] == 1);
GGML_ASSERT(ggml_can_repeat_rows(mask, a));
GGML_ASSERT(mask->ne[1] >= a->ne[1]);
}
bool is_node = false;