Skip to content
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

【new_frl】modify multiply_grad_node create #54389

Merged
merged 5 commits into from
Jun 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ paddle::Tensor conv2d_ad_func(const paddle::Tensor& input,
std::vector<int> dilations,
int groups,
std::string data_format);
paddle::Tensor multiply_ad_func(const paddle::Tensor& x,
const paddle::Tensor& y);
paddle::Tensor& multiply__ad_func(paddle::Tensor& x, // NOLINT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why inplace?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inplace can not be generated because of 'multiply' added in black list

const paddle::Tensor& y);

std::tuple<paddle::Tensor,
paddle::Tensor&,
Expand Down Expand Up @@ -62,4 +66,8 @@ sync_batch_norm__ad_func(const paddle::Tensor& x,
std::string data_layout,
bool use_global_stats,
bool trainable_statistics);

paddle::Tensor multiply_ad_func(const paddle::Tensor& x,
const paddle::Tensor& y);

} // namespace sparse
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ set(eager_manual_functions
${PADDLE_SOURCE_DIR}/paddle/fluid/eager/api/manual/eager_manual/forwards/add_n_fwd_func.cc
${PADDLE_SOURCE_DIR}/paddle/fluid/eager/api/manual/eager_manual/forwards/conv2d_fwd_function.cc
${PADDLE_SOURCE_DIR}/paddle/fluid/eager/api/manual/eager_manual/forwards/sync_batch_norm_fwd_func.cc
${PADDLE_SOURCE_DIR}/paddle/fluid/eager/api/manual/eager_manual/forwards/multiply_fwd_func.cc
PARENT_SCOPE)
Loading