Commit 465adf3 for stable-diffusion.cpp
commit 465adf389f252e401257f44efb0ea49da8e4e80b
Author: leejet <leejet714@gmail.com>
Date: Wed Nov 11 01:02:14 2026 +0800
fix: avoid structured binding capture in MiniMax H3 SOL attention
diff --git a/src/model/vae/minimax_h3_sol_attention.hpp b/src/model/vae/minimax_h3_sol_attention.hpp
index 7015250..31df751 100644
--- a/src/model/vae/minimax_h3_sol_attention.hpp
+++ b/src/model/vae/minimax_h3_sol_attention.hpp
@@ -107,7 +107,8 @@ namespace MiniMaxH3VAE {
}
// Bound the workspace of backends that fall back to unfused attention.
constexpr size_t max_windows = 4;
- for (const auto& [query_count, windows] : groups) {
+ for (const auto& group : groups) {
+ const auto& windows = group.second;
for (size_t first_window = 0; first_window < windows.size(); first_window += max_windows) {
const auto n = static_cast<int64_t>(std::min(max_windows, windows.size() - first_window));
auto pack_windows = [&](auto member) -> sd::Tensor<int32_t> {