hiroi-sora 192300837f
Fix cpp_infer "--enable_mkldnn=false" not effective (#13539)
* Fix "--enable_mkldnn=false" not effective

When using the --enable_mkldnn command line option, MKLDNN should be enabled when set to true and disabled when set to false. But, using the PaddlePaddle v3.0.0-beta1 inference library, the --enable_mkldnn=false option did not work as expected, causing MKLDNN to remain enabled regardless of the setting.

This commit adds a call to `config.DisableMKLDNN()` in the else branch to explicitly disable MKLDNN when `--enable_mkldnn=false` is set.

* fix code style: clang-format
2024-07-29 17:01:40 +08:00
..
2024-04-21 21:46:20 +08:00
2023-08-14 10:14:43 +08:00