未验证 提交 da55f674 编写于 作者: 石晓伟 提交者: GitHub

fix pass selection, test=develop (#2187)

上级 72c11758
......@@ -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)});
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册