From da55f6745da6050479a443f9181bddac8205a072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E6=99=93=E4=BC=9F?= <39303645+Shixiaowei02@users.noreply.github.com> Date: Tue, 15 Oct 2019 14:50:01 +0800 Subject: [PATCH] fix pass selection, test=develop (#2187) --- lite/core/mir/type_target_cast_pass.cc | 4 +--- lite/core/optimizer.h | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lite/core/mir/type_target_cast_pass.cc b/lite/core/mir/type_target_cast_pass.cc index a3b6911ed6..91bbd95001 100644 --- a/lite/core/mir/type_target_cast_pass.cc +++ b/lite/core/mir/type_target_cast_pass.cc @@ -217,6 +217,4 @@ void TypeTargetTransformPass::SetValidPlaces( REGISTER_MIR_PASS(type_target_cast_pass, paddle::lite::mir::TypeTargetTransformPass) - .BindTargets({TARGET(kAny)}) - .BindKernel("io_copy_once") - .BindKernel("io_copy"); + .BindTargets({TARGET(kAny)}); diff --git a/lite/core/optimizer.h b/lite/core/optimizer.h index 7c85a4429a..6f91fee991 100644 --- a/lite/core/optimizer.h +++ b/lite/core/optimizer.h @@ -211,7 +211,8 @@ class Optimizer { } matched = matched && PassMatchesKernels(*pass); if (!matched) { - LOG(INFO) << " - Skip " << x << " because the target does not match."; + LOG(INFO) << " - Skip " << x + << " because the target or kernel does not match."; } else { pass->Apply(graph_); LOG(INFO) << "== Finished running: " << x; -- GitLab