Skip to content

Commit

Permalink
remove expected_kernel_key in interpreter (#49120)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahy0825 authored Dec 19, 2022
1 parent 1e688e9 commit ff79c14
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ff79c14

Please sign in to comment.