Fork自 PaddlePaddle / PaddleDetection
* fix #11416 * make sgd check tape has been backwarded_ * add error message