Expose a interface to create all variables and enable the test of not creating variables every time. !9301
Created by: Xreki
Fix #9653 (closed)
Sometimes users do not want to create and destroy variables in every run.
Here is the performance comparision for test_inference_image_classificaion_resnet
.
GPU: Tesla K40m, CUDA 8.0, CUDNN v7.
1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | |
---|---|---|---|---|---|---|---|---|---|
2018/03/14 | 866.048 | 852.3 | 858.021 | 987.86 | 1115.01 | 1556.01 | 2232.87 | 4375.75 | 8443.42 |
2018/03/31, not create variables in every run | 775.283 | 758.788 | 777.694 | 906.402 | 1045.67 | 1489.28 | 2155.31 | 4280.39 | 8330.89 |
speed up | 1.117073 | 1.123239 | 1.103289 | 1.08987 | 1.066312 | 1.044807 | 1.035986 | 1.022278 | 1.013508 |