Fork自 PaddlePaddle / Paddle
* add is_train into the cache key * fix unittest error * add unittest * remove import