From b829c247e149be8b874397e239350bd6bc6944e2 Mon Sep 17 00:00:00 2001 From: chenghuaWang <2923277184@qq.com> Date: Thu, 31 Oct 2024 12:51:34 +0000 Subject: [PATCH] fix: set xnn default threads to 4 --- src/backends/xnnpack/XnnpackBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/xnnpack/XnnpackBackend.cpp b/src/backends/xnnpack/XnnpackBackend.cpp index 592223b3..c0a7520d 100644 --- a/src/backends/xnnpack/XnnpackBackend.cpp +++ b/src/backends/xnnpack/XnnpackBackend.cpp @@ -404,6 +404,6 @@ void XnnpackBackend::setWeightCacheFinalized(bool b) { weight_cache_finalized = b; } -int XnnpackBackend::xnn_threads = 0; +int XnnpackBackend::xnn_threads = 4; } // namespace mllm::xnnpack \ No newline at end of file