fix a typo that fails the compiling when ElementScale is not the same as MmaType (#1977)
This commit is contained in:
@@ -836,7 +836,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
auto stage = make_tensor_like<ElementScale>(src_vm);
|
auto stage = make_tensor_like<ElementScale>(src_vm(_, 0));
|
||||||
CUTLASS_PRAGMA_UNROLL
|
CUTLASS_PRAGMA_UNROLL
|
||||||
for (int i = 0; i < size<1>(dst_vm); ++i) {
|
for (int i = 0; i < size<1>(dst_vm); ++i) {
|
||||||
LayoutAwareConvert(src_vm(_, i), stage);
|
LayoutAwareConvert(src_vm(_, i), stage);
|
||||||
@@ -868,7 +868,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
auto stage = make_tensor_like<ElementScale>(src_vm);
|
auto stage = make_tensor_like<ElementScale>(src_vm(_, 0));
|
||||||
CUTLASS_PRAGMA_UNROLL
|
CUTLASS_PRAGMA_UNROLL
|
||||||
for (int i = 0; i < size<1>(dst_vm); ++i) {
|
for (int i = 0; i < size<1>(dst_vm); ++i) {
|
||||||
LayoutAwareConvert(src_vm(_, i), stage);
|
LayoutAwareConvert(src_vm(_, i), stage);
|
||||||
|
|||||||
Reference in New Issue
Block a user