enable_static¶
- paddle. enable_static ( ) [source]
-
Note
Dynamic graph mode is turn ON by default since paddle 2.0.0
This API turn ON static graph mode. You can turn ON static graph mode by disable_static .
- Returns
-
None
Examples
>>> import paddle >>> print(paddle.in_dynamic_mode()) True >>> paddle.enable_static() >>> print(paddle.in_dynamic_mode()) False >>> paddle.disable_static() >>> print(paddle.in_dynamic_mode()) True