[PHI]Add RNN yaml (#46812)
* add yaml entry for rnn and rrnn_grad, move infershape function for rnn_grad to phi infer meta
* WIP: move rnn kernrl to phi
* Change the code generation to avoid converting from intializer list to tuple of heterogeneous types.
This is only triggered when an api has intermediate outputs, and the result of the outputs are of heterogeneous types.
* fix the bug that when none in a vector of tensors requires gradient, the conversion to InferShapeContext to InferMetaContext (a.k.a. BuildInferMetaContext) produces errorous results.
* fix ci bugs
* fix ci bugs
* fix ci bugs
* modify code according comment
Co-authored-by: Nchenfeiyu <chenfeiyu@baidu.com>
Showing
想要评论请 注册 或 登录