Skip to content

Commit

Permalink
[PIR]Fix pool3d gpudnn kernel (PaddlePaddle#59344)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x45f authored and SecretXV committed Nov 28, 2023
1 parent ec2c100 commit 81611ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion paddle/fluid/pir/transforms/pd_op_to_kernel_pass.cc
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ static bool NeedFallBackFromGPUDNN2GPU(pir::Operation* op,
const phi::KernelKey kernel_key) {
// NOTE(phlrain): keep the same kernel select strategy with
// GetExepectKernelKey
if (op->isa<Pool2dOp>() || op->isa<Pool2dGradOp>()) {
if (op->isa<Pool2dOp>() || op->isa<Pool2dGradOp>() || op->isa<Pool3dOp>() ||
op->isa<Pool3dGradOp>()) {
if (kernel_key.backend() == phi::Backend::GPUDNN &&
(op->attributes()
.at("adaptive")
Expand Down

0 comments on commit 81611ef

Please sign in to comment.