Skip to content

Commit

Permalink
#15732: use auto to get a pair of variables in some matmul code
Browse files Browse the repository at this point in the history
  • Loading branch information
bbradelTT committed Dec 14, 2024
1 parent 1825a7d commit 60fa167
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ttnn/cpp/ttnn/operations/matmul/device/matmul_op.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,7 @@ inline std::vector<uint32_t> 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) {
Expand Down

0 comments on commit 60fa167

Please sign in to comment.