llmodel: constify LLModel::threadCount()

This commit is contained in:
Juuso Alasuutari
2023-05-21 23:45:29 +03:00
committed by AT
parent efd39b0d73
commit 81fdc28e58
9 changed files with 12 additions and 9 deletions

View File

@@ -75,7 +75,8 @@ void LLamaModel::setThreadCount(int32_t n_threads) {
d_ptr->n_threads = n_threads;
}
int32_t LLamaModel::threadCount() {
int32_t LLamaModel::threadCount() const
{
return d_ptr->n_threads;
}