未验证 提交 c1f53b40 编写于 作者: H huzhiqiang 提交者: GitHub

[BUG FIX] Fix the issue that opt can not transform quantized model (#3818)

上级 74b2129c
......@@ -326,10 +326,8 @@ void Predictor::Build(const std::shared_ptr<cpp::ProgramDesc> &desc,
}
}
if (is_quantized_model) {
#ifdef LITE_WITH_ARM
inner_places.insert(inner_places.begin(),
Place{TARGET(kARM), PRECISION(kInt8)});
#endif
}
Program program(*desc.get(), scope_, inner_places);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册