Fork自 PaddlePaddle / PaddleDetection
* change GPU memory allocating policy * fix potential overflow bug