mindquantum.dtype.is_single_precision

View Source On Gitee
mindquantum.dtype.is_single_precision(dtype)[source]

Check whether a type is single precision or not.

Parameters

dtype (mindquantum.dtype) – The data type supported by mindquantum.

Examples

>>> from mindquantum import is_single_precision, complex128
>>> is_single_precision(complex128)
False