@tom Thanks for your reply.
So in the new-style, the input/output of forward function are still tensor but the grad_output of backward function is Variable which enable the calculation the second derivatives?