Fork自 PaddlePaddle / PaddleDetection
Clean managed/umnamaged allocator
add unittest of retry_allocator
Use OO style to rewrite memory allocation.