Skip to content

Commit

Permalink
Update gemm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tbennun authored Nov 1, 2024
1 parent b4dcdca commit 4443e5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dace/libraries/blas/nodes/gemm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
def _is_complex(dtype):
if hasattr(dtype, "is_complex") and callable(dtype.is_complex):
return dtype.is_complex()
else:
return dtype in [dtypes.complex64, dtypes.complex128]
if not isinstance(dtype, dtypes.typeclass):
dtype = dace.dtype_to_typeclass(dtype)
return dtype in [dtypes.complex64, dtypes.complex128]


def _cast_to_dtype_str(value, dtype: dace.dtypes.typeclass) -> str:
Expand Down

0 comments on commit 4443e5f

Please sign in to comment.