placeholder for calculating the gradient for adjoint method.

Signed-off-by: Yimin <zhongym8903@gmail.com>