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

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