Skip to content

Commit 465adf3

Browse files
committed
fix: avoid structured binding capture in MiniMax H3 SOL attention
1 parent 0678d04 commit 465adf3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/model/vae/minimax_h3_sol_attention.hpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ namespace MiniMaxH3VAE {
107107
}
108108
// Bound the workspace of backends that fall back to unfused attention.
109109
constexpr size_t max_windows = 4;
110-
for (const auto& [query_count, windows] : groups) {
110+
for (const auto& group : groups) {
111+
const auto& windows = group.second;
111112
for (size_t first_window = 0; first_window < windows.size(); first_window += max_windows) {
112113
const auto n = static_cast<int64_t>(std::min(max_windows, windows.size() - first_window));
113114
auto pack_windows = [&](auto member) -> sd::Tensor<int32_t> {

0 commit comments

Comments
 (0)