set_default_dtype

paddle. set_default_dtype ( d ) [source]

Set default dtype. The default dtype is initially float32

Parameters

d (string|np.dtype) – the dtype to make the default. It only supports float16, float32 and float64.

Returns

None.

Examples

import paddle
paddle.set_default_dtype("float32")