This version is the beta version of PaddlePaddle Framework v2.0. The most important change is the full upgrade of the API system and the comprehensive improvement on the imperative programming (dynamic graph) capability. This version systematically optimizes the directory structure of PaddlePaddle basic APIs, comprehensively fixes relevant issues left over from the past, fully supplements APIs, and especially provides the better high-level API functions. It also provides support for the quantitative training and mixed precision training under a dynamic graph. Perfect syntax support is implemented in the dynamic-to-static conversion. The usability is improved substantially. Dynamic graph-related functions tend to be perfect. The default development mode of PaddlePaddle is changed to the dynamic graph mode.In addition, the C++ APIs for the inference library are upgraded and optimized. Both the support of the inference library for quantitative models and the inference performance are fully enhanced.
This version is the beta version of PaddlePaddle Framework v2.0. The most important change is the full upgrade of the API system and the comprehensive improvement on the imperative programming (dynamic graph) capability. This version systematically optimizes the directory structure of PaddlePaddle basic APIs, comprehensively fixes relevant issues left over from the past, fully supplements APIs, and especially provides the better high-level API functions. It also provides support for the quantitative training and mixed precision training under a dynamic graph. Perfect syntax support is implemented in the dynamic-to-static conversion. The usability is improved substantially. Dynamic graph-related functions tend to be perfect. In addition, the C++ APIs for the inference library are upgraded and optimized. Both the support of the inference library for quantitative models and the inference performance are fully enhanced.
## Training Framework
...
...
@@ -19,13 +19,13 @@ For Version Paddle 2.x, users are recommended to use APIs in the paddle root dir
| paddle.* | The aliases of commonly used APIs are reserved in the paddle root directory, which currently include all the APIs in the paddle.tensor and paddle.framework directories |
| paddle.tensor | APIs related to tensor operations such as creating zeros, matrix operation matmul, transforming concat, computing add, and finding argmax |
| paddle.nn | Networking-related APIs such as Linear, Conv2d, loss function, convolution, LSTM,and activation function |
| paddle.static.nn | Special APIs for networking under a static graph such as input placeholder data/Input and control flow while_loop/cond |
| paddle.static.nn | Special APIs for networking under a static graph such as input placeholder data, fully connection fc and control flow while_loop/cond |
| paddle.static | APIs related to the basic framework under a static graph such as Variable, Program, and Executor |
| paddle.framework | Universal APIs and imprerative mode APIs such as to_variable and prepare_context |
| paddle.framework | Universal APIs and imprerative mode APIs such as to_tensor |
| paddle.optimizer | APIs related to optimization algorithms such as SGD, Adagrad, and Adam |
| paddle.optimizer.lr_scheduler | APIs related to learning rate attenuation |
| paddle.metric | APIs related to evaluation index computation such as accuracy and auc |
| paddle.io | APIs related to data input and output such as save, load, Dataset, and DataLoader |
| paddle.io | APIs related to data input and output such as Dataset, and DataLoader |
| paddle.device | APIs related to device management such as CPUPlace and CUDAPlace |
| paddle.distributed | Distributed related basic APIs |
| paddle.distributed.fleet | Distributed related high-level APIs |
...
...
@@ -78,6 +78,22 @@ For Version Paddle 2.x, users are recommended to use APIs in the paddle root dir
- Modified and improved a total of 155 APIs. See [Link] (https://github.com/PaddlePaddle/Paddle/wiki/Paddle-2.0beta-Upgraded-API-List) and the API document
- Fixed APIs related to random number generation including: seed setting paddle.rand, randn, randint, randperm, dropout, Uniform, and Normal
...
...
@@ -85,6 +101,7 @@ For Version Paddle 2.x, users are recommended to use APIs in the paddle root dir
- Added oneDNN support for the relu6 and Sigmoid activation functions
#### Multi-device/Distributed Training APIs
- Single-Machine Multi-Card Training Under a Dynamic Graph
- Added paddle.distributed.spawn(func, args=(), nprocs=-1, join=True, daemon=False, **options),which is used to start multi-card training under a dynamic graph.
- Added paddle.distributed.init_parallel_env(), which is used to initialize the environment of multi-card training under a dynamic graph.
...
...
@@ -176,7 +193,6 @@ For Version Paddle 2.x, users are recommended to use APIs in the paddle root dir
- Added paddle.jit.save API, which is used to save a dynamic-to-static model so that the API is easier to use; deleted an old API ProgramTranslator.save_inference_model.
- Added paddle.jit.load API, which is used to load inference models including models saved by paddle.jit.save and paddle.io.save_inference_model. After being loaded, models can be used for model inference or model training optimization in a dynamic graph.
#### Mixed Precision Training
- Added the support for mixed precision of dynamic graphs. The ratio of the speed when the ResNet-50 model is trained on V100 using mixed precision to the speed using fp32 is 2.6.