mindquantum.dtype.to_double_precision

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

Convert type to double precision.

Parameters

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

Examples

>>> from mindquantum import to_double_precision, float32
>>> to_double_precision(float32)
mindquantum.float64