Skip to content

Commit

Permalink
fix a typo that fails the compiling when ElementScale is not the same…
Browse files Browse the repository at this point in the history
… as MmaType (#1977)
  • Loading branch information
IwakuraRein authored Dec 10, 2024
1 parent 4c42f73 commit 2b6cfd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/cutlass/detail/collective/mixed_input_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ struct MixedInputUtils {
}
}
else {
auto stage = make_tensor_like<ElementScale>(src_vm);
auto stage = make_tensor_like<ElementScale>(src_vm(_, 0));
CUTLASS_PRAGMA_UNROLL
for (int i = 0; i < size<1>(dst_vm); ++i) {
LayoutAwareConvert(src_vm(_, i), stage);
Expand Down Expand Up @@ -868,7 +868,7 @@ struct MixedInputUtils {
}
}
else {
auto stage = make_tensor_like<ElementScale>(src_vm);
auto stage = make_tensor_like<ElementScale>(src_vm(_, 0));
CUTLASS_PRAGMA_UNROLL
for (int i = 0; i < size<1>(dst_vm); ++i) {
LayoutAwareConvert(src_vm(_, i), stage);
Expand Down

0 comments on commit 2b6cfd3

Please sign in to comment.