-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GLCC]Part-4: fix testcases for dy2st PyLayer #57633
[GLCC]Part-4: fix testcases for dy2st PyLayer #57633
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
A nest structure of tensors in PaddlePaddle is tensor(s), or tuple of tensors, or | ||
list of tensors. | ||
``forward_fn`` and ``backward_fn`` should return a nest structure of Variables. | ||
A nest structure of Variables in PaddlePaddle is Variable(s), or tuple of Variables, or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里其实不需要改为Variable的,因为我们在用户端正在「去Variable化」,用户了解到的都是Tensor,可以单独再提一个PR 吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,会在下一个 pr 进行修复~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* add testcase load_inference_model * polish code for last pr * delete annots * fix docs of static_pylayer
* add testcase load_inference_model * polish code for last pr * delete annots * fix docs of static_pylayer
* add testcase load_inference_model * polish code for last pr * delete annots * fix docs of static_pylayer
PR types
Others
PR changes
Others
Description
Original requirements
It is expected that the PyLayer mechanism in the dynamic graph of the Paddle can interoperate with the @to_staitc of the Paddle's dynamic to static, supporting the custom layer of the PyLayer in the model to be perceived by the @to_static and correctly generating the static graph Program, and supporting the training of the dynamic to static and the exporting for inference.
So our main objective is to Enable PyLayer to Support @to_static. In this PR, we fix some testcases for dy2st
PyLayer
.Related issues
【Feature Request】 PyLayer 功能支持动转静 @to_static 🚀: #54120
Related PR
[GLCC]Part-1: Add pylayer op to Support @to_static: #56108
[GLCC]Part-2: @to_static support for PyLayer: #56531
[GLCC]Part-3: Support jit.save and jit.load for pylayer op: #57066
Project Records
https://github.com/MarioLulab/GLCC2023-Paddle-Record
Main works
test_and_compare_with_new_ir
in the functioncheck_save_inference_model
oftest_save_inference_model.py
.