Fork自 PaddlePaddle / Paddle
Added backward.calc_gradient to backpropagate gradient from given targets to inputs.