get_default_dtype

paddle. get_default_dtype ( ) [source]

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

Parameters

None.

Returns

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

Examples

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