vulkan: Fix OOB accesses in soft_max_back (#15861)

This commit is contained in:
Jeff Bolz
2025-09-09 07:41:15 -05:00
committed by GitHub
parent 17bc5a815f
commit 4f63cd705c
3 changed files with 7 additions and 2 deletions

View File

@@ -6391,6 +6391,7 @@ static std::vector<std::unique_ptr<test_case>> make_test_cases_eval() {
for (int64_t ne1 : {16, 1024}) {
test_cases.emplace_back(new test_soft_max_back(GGML_TYPE_F32, {ne0, ne1, 1, 1}, scale, max_bias));
test_cases.emplace_back(new test_soft_max_back(GGML_TYPE_F32, {ne0-1, ne1-1, 1, 1}, scale, max_bias));
test_cases.emplace_back(new test_soft_max_back(GGML_TYPE_F32, {ne0, ne1, 2, 3}, scale, max_bias));
}
}
}