From ff79c1449f4033d75645f7552a8b6826bb953912 Mon Sep 17 00:00:00 2001 From: HongyuJia Date: Mon, 19 Dec 2022 20:26:07 +0800 Subject: [PATCH] remove expected_kernel_key in interpreter (#49120) --- .../framework/new_executor/interpreter/data_transfer.cc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/paddle/fluid/framework/new_executor/interpreter/data_transfer.cc b/paddle/fluid/framework/new_executor/interpreter/data_transfer.cc index f2882eaf59..dd16c484dc 100644 --- a/paddle/fluid/framework/new_executor/interpreter/data_transfer.cc +++ b/paddle/fluid/framework/new_executor/interpreter/data_transfer.cc @@ -132,15 +132,6 @@ void DataTranferHelper::RunAndConstructOpFuncNode( platform::DeviceContextPool& pool = platform::DeviceContextPool::Instance(); auto* dev_ctx = pool.Get(place_); auto exec_ctx = ExecutionContext(*op, Scope(), *dev_ctx, runtime_context); - auto expected_kernel_key = op_with_kernel->GetExpectedKernelType(exec_ctx); -#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP) - if (op_with_kernel->CanCUDNNBeUsed(exec_ctx, - expected_kernel_key.data_type_)) { - expected_kernel_key.library_type_ = framework::LibraryType::kCUDNN; - } -#endif - - VLOG(6) << "expected_kernel_key " << expected_kernel_key << "\n"; VLOG(6) << "op_with_kernel Type() " << op_with_kernel->Type() << "\n"; bool run_phi_kernel = false; -- GitLab