Created by: pangyoki
PR types
Breaking changes
PR changes
Others
Describe
Paddle 2.0 uses dygraph mode
by default. This PR change the default mode from static mode
to dygraph mode
.
1. use dygraph mode by default
In paddle/init.py, add disable_static()
to change the default mode to dygraph mode
.
2. manually change unittest to static mode
Unittest is realized based on static mode. It will cause conflicts when dygraph mode is opened by default. To solve this problem, before the unittest runs, switch the mode to static mode.