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

【PIR OpTest Fix No.33】fix fused_conv2d_add_act #63005

Merged
merged 3 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions paddle/fluid/pir/dialect/operator/utils/utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const std::unordered_set<std::string> LegacyOpList = {
QuantizeLinear_Op::name(),
DequantizeLinearOp::name(),
DequantizeLinear_Op::name(),
FusedConv2dAddActOp::name(),
Copy link
Contributor

Choose a reason for hiding this comment

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

这个不是LegacyOp吧,它注册kernel的方式是 PD_REGISTER_KERNEL

Copy link
Contributor Author

Choose a reason for hiding this comment

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

好的已修改,单测已运行通过。

FLAGS_enable_pir_in_executor=1 ctest -R test_fused_conv2d_add_act_op

#ifdef PADDLE_WITH_DNNL
paddle::onednn::dialect::LrnOp::name(),
paddle::onednn::dialect::LrnGradOp::name(),
Expand Down
1 change: 1 addition & 0 deletions test/white_list/pir_op_test_white_list
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ test_fused_adam_op
test_fused_attention_op
test_fused_attention_op_api
test_fused_bias_dropout_residual_layer_norm_op
test_fused_conv2d_add_act_op
test_fused_fc_elementwise_layernorm_op
test_fused_feedforward_op
test_fused_gate_attention_op
Expand Down