set_default_dtype¶
- paddle. set_default_dtype ( d ) [source]
-
Set default dtype. The default dtype is initially float32.
- Parameters
-
d (string|paddle.dtype|np.dtype) – the dtype to make the default. It only supports float16, bfloat16, float32 and float64.
- Returns
-
None.
Examples
>>> import paddle >>> paddle.set_default_dtype("float32")