get_default_dtype

paddle. get_default_dtype ( ) _DTypeLiteral [source]

Get the current default dtype. The default dtype is initially float32.

Parameters

None.

Returns

str, this global dtype only supports float16, float32, float64.

Examples

>>> import paddle
>>> paddle.get_default_dtype()