Skip to content

Commit 5a46969

Browse files
committed
Linter
1 parent 42338f1 commit 5a46969

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

extension/android/jni/jni_layer_llama.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,9 @@ class ExecuTorchLlamaJni
100100
// Reserve 1 thread for the main thread.
101101
uint32_t num_performant_cores =
102102
torch::executorch::cpuinfo::get_num_performant_cores() - 1;
103-
if (num_performant_cores <= 0) {
104-
num_performant_cores = 1;
105-
}
106-
ET_LOG(
107-
Info, "Resetting threadpool with num threads = %d", num_performant_cores);
108103
if (num_performant_cores > 0) {
104+
ET_LOG(
105+
Info, "Resetting threadpool to %d threads", num_performant_cores);
109106
torch::executorch::threadpool::get_threadpool()->_unsafe_reset_threadpool(
110107
num_performant_cores);
111108
}

0 commit comments

Comments
 (0)