[layout] Fix AffineRank2ColumnMajor::packed() (#879)
* [layout] Fix AffineRank2ColumnMajor::packed() * correct affine2row::packed --------- Co-authored-by: Haicheng Wu <haichengw@nvidia.com>
This commit is contained in:
parent
15d9d31f1f
commit
bc36122c3f
@ -805,7 +805,7 @@ public:
|
||||
/// Helper returns a layout to a tightly packed tensor
|
||||
CUTLASS_HOST_DEVICE
|
||||
static AffineRank2ColumnMajor packed(MatrixCoord const &extent) {
|
||||
return AffineRank2ColumnMajor(extent.column(), 1);
|
||||
return AffineRank2ColumnMajor(1, extent.row());
|
||||
}
|
||||
|
||||
/// Returns the offset of a coordinate in linear memory.
|
||||
@ -911,7 +911,7 @@ public:
|
||||
/// Helper returns a layout to a tightly packed tensor
|
||||
CUTLASS_HOST_DEVICE
|
||||
static AffineRank2RowMajor packed(MatrixCoord const &extent) {
|
||||
return AffineRank2RowMajor(extent.column(), 1);
|
||||
return AffineRank2RowMajor(1, extent.row());
|
||||
}
|
||||
|
||||
/// Returns the offset of a coordinate in linear memory.
|
||||
|
Loading…
Reference in New Issue
Block a user