【Prim】support higher order autodiff for dy2static+composite (#53171)
* [Dy2St]Fix x grad names when high order gradient
* Polish error msg
* Add inputs var to backward in dy2st
* Fix error
* Get grad names for backward API
* Fix save load
* Polish code
* Add ut
* [prim] fix not support optional grad bugs in higher order autodiff
* [prim] remove duplicate fill_any_like caused by infershape_for_composite
* fix _strip_grad_suffix_ bugs in higher-order autodiff
* [prim] create output for test_static_prim.cc
---------
Co-authored-by: N0x45f <wangzhen45@baidu.com>
Showing
想要评论请 注册 或 登录