From 465adf389f252e401257f44efb0ea49da8e4e80b Mon Sep 17 00:00:00 2001 From: leejet Date: Wed, 11 Nov 2026 01:02:14 +0800 Subject: [PATCH] fix: avoid structured binding capture in MiniMax H3 SOL attention --- src/model/vae/minimax_h3_sol_attention.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/model/vae/minimax_h3_sol_attention.hpp b/src/model/vae/minimax_h3_sol_attention.hpp index 70152509..31df751a 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(std::min(max_windows, windows.size() - first_window)); auto pack_windows = [&](auto member) -> sd::Tensor {