Fork自 PaddlePaddle / PaddleDetection
The instance weight and coeff are only mulipled to the gradient with respect to input.