fix(math): fix critical tensor/expression mistakes

This commit is contained in:
2026-11-01 12:48:41 +01:00
parent 377cd5941d
commit 795915d100
3 changed files with 45 additions and 18 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ struct matmul {
constexpr std::size_t rhs_cols = rhs_shape::template sget<1>();
if constexpr (lhs_rows == dynamic_extent || rhs_cols == dynamic_extent) {
return dynamic_shape<lhs_rows, rhs_cols>{};
return dynamic_shape<lhs_rows, rhs_cols>{ lhs_shape::template get<0>(), rhs_shape::template get<1>() };
} else {
return static_shape<lhs_rows, rhs_cols>{};
}