From 60fa167443517ba1fe9523ff811f027e19bfc50f Mon Sep 17 00:00:00 2001 From: Borys Bradel Date: Fri, 13 Dec 2024 22:19:03 +0000 Subject: [PATCH] #15732: use auto to get a pair of variables in some matmul code --- ttnn/cpp/ttnn/operations/matmul/device/matmul_op.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ttnn/cpp/ttnn/operations/matmul/device/matmul_op.cpp b/ttnn/cpp/ttnn/operations/matmul/device/matmul_op.cpp index aca6ae587b4..8890184eb38 100644 --- a/ttnn/cpp/ttnn/operations/matmul/device/matmul_op.cpp +++ b/ttnn/cpp/ttnn/operations/matmul/device/matmul_op.cpp @@ -301,8 +301,7 @@ inline std::vector get_multi_dim_per_core_factor( auto entry = factors.find(multiple); bool add = true; if (entry != factors.end()) { - uint32_t existing_m = std::get<0>(entry->second); - uint32_t existing_n = std::get<1>(entry->second); + auto [existing_m, existing_n] = entry->second; float existing_ratio = (float)std::max(existing_m, existing_n) / (float)std::min(existing_m, existing_n); if (existing_ratio < ratio) {