Fork自 PaddlePaddle / Paddle
* use has_grad instead of train_mode * add vlog for debug * fix ut * fix ut