-
Notifications
You must be signed in to change notification settings - Fork 0
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
[static code gen] support composite grad maker code gen #37
[static code gen] support composite grad maker code gen #37
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.
some comments
# "${generated_argument_mapping_path}" | ||
# "${generated_static_argument_mapping_path}" | ||
# "${generated_sparse_argument_mapping_path}") | ||
set(generated_static_files |
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.
why this? This is duplicated with line 159
ops=ops, | ||
backward_ops=backward_ops, | ||
op_dict=op_dict, | ||
composite_gen_flag=True, |
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.
Add TODO here to support all static code gen with composite
std::vector<paddle::optional<paddle::experimental::Tensor>> outputs_opt; | ||
std::vector<framework::VarDesc*> outputs_descs = | ||
this->MultiForwardOutput(name); | ||
outputs_opt.resize(outputs_descs.size()); |
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.
No need for additional copy
PR types
New features
PR changes
Others
Describe
support composite grad maker code gen.