@@ -94,7 +94,6 @@ template <dpas_argument_type T> struct DpasNaturalOperandType {
94
94
static constexpr bool is_bf16 = T == dpas_argument_type::bf16 ;
95
95
static constexpr bool is_tf32 = T == dpas_argument_type::tf32;
96
96
97
- // TODO: support tf32 here.
98
97
using type = std::conditional_t <
99
98
is_sint, signed char ,
100
99
std::conditional_t <
@@ -149,7 +148,7 @@ void writeToHorizontallyPackedMatrix(void *VVec, int Row, int Col,
149
148
ElemT *Vec = reinterpret_cast <ElemT *>(VVec);
150
149
151
150
// 1. Find and read the target 'unsigned int' element.
152
- // THe unpacked matrix has dimensions: NumRows*NumCols
151
+ // The unpacked matrix dimensions are NumRows*NumCols.
153
152
constexpr int ElemsInElemT = sizeof (ElemT) * 8 / ElemBitSize;
154
153
int UnpackedLinearIndex = Row * NumCols + Col;
155
154
int PackedLinearIndex = UnpackedLinearIndex / ElemsInElemT;
@@ -160,7 +159,6 @@ void writeToHorizontallyPackedMatrix(void *VVec, int Row, int Col,
160
159
} else {
161
160
ElemT TargetElem = Vec[PackedLinearIndex];
162
161
// TargetElem has 2 or more elements in it. Need to extract one.
163
- // TODO: for now assume that is the case only for 2 or 4-bit integers.
164
162
assert ((ElemBitSize == 2 || ElemBitSize == 4 ) && " Unexpected element type" );
165
163
166
164
unsigned int Offset = (UnpackedLinearIndex % ElemsInElemT) * ElemBitSize;
@@ -196,7 +194,6 @@ ReadT readFromHorizontallyPackedMatrix(void *VVec, int Row, int Col) {
196
194
return static_cast <ReadT>(TargetElem);
197
195
} else {
198
196
// TargetElem has 2 or more elements in it. Need to extract one.
199
- // TODO: for now assume that is the case only for 2 or 4-bit integers.
200
197
assert ((ElemBitSize == 2 || ElemBitSize == 4 ) && " Unexpected element type" );
201
198
unsigned int Offset = (UnpackedLinearIndex % ElemsInElemT) * ElemBitSize;
202
199
unsigned int Mask = (static_cast <uint64_t >(1 ) << ElemBitSize) - 1 ;
0 commit comments