You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[AutoDiff] Handle differentiation of @autodiff functions. (#21792)
* [AutoDiff] Handle differentiation of `@autodiff` functions.
Given an `AutoDiffFunctionExtractInst` in PrimalGen, get its VJP by
simply extracting the VJP of its function operand.
Thanks for detailed guidance from @rxwei.
* Fix retain and shorten test.
`autodiff_function_extract` consumes its function operand.
Thus, the function operand should be retained before `autodiff_function_extract`.
* Generalize code to extract given associated function kind.
Update comments.
0 commit comments