mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-11-20 12:03:28 +00:00
fix rec v3 mkldnn irpass in cpp infer (#6154)
* fix rec v3 mkldnn irpass * fix rec v3 mkldnn irpass
This commit is contained in:
parent
12aa5e80fa
commit
369889b6e0
@ -166,6 +166,10 @@ void CRNNRecognizer::LoadModel(const std::string &model_dir) {
|
|||||||
config.SetCpuMathLibraryNumThreads(this->cpu_math_library_num_threads_);
|
config.SetCpuMathLibraryNumThreads(this->cpu_math_library_num_threads_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// get pass_builder object
|
||||||
|
auto pass_builder = config.pass_builder();
|
||||||
|
// delete "matmul_transpose_reshape_fuse_pass"
|
||||||
|
pass_builder->DeletePass("matmul_transpose_reshape_fuse_pass");
|
||||||
config.SwitchUseFeedFetchOps(false);
|
config.SwitchUseFeedFetchOps(false);
|
||||||
// true for multiple input
|
// true for multiple input
|
||||||
config.SwitchSpecifyInputNames(true);
|
config.SwitchSpecifyInputNames(true);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user