fix layout bug (#1006)

This commit is contained in:
Tianqi Zhang (张天启) 2023-07-20 02:26:01 +08:00 committed by GitHub
parent 146d314057
commit 8e85580859
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,7 +128,7 @@ class KernelsForDataType:
:rtype: int :rtype: int
""" """
# Determine the leading dimension of the shape # Determine the leading dimension of the shape
if layout == cutlass.LayoutType.RowMajor: if layout == cutlass.LayoutType.ColumnMajor:
ld = shape[0] ld = shape[0]
elif layout == cutlass.LayoutType.RowMajor: elif layout == cutlass.LayoutType.RowMajor:
ld = shape[1] ld = shape[1]