Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenNMT/CTranslate2
/ num_threads
Method
num_threads
src/thread_pool.cc:164–166 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
162
}
163
164
size_t ThreadPool::num_threads() const {
165
return _workers.size();
166
}
167
168
size_t ThreadPool::num_queued_jobs() const {
169
return _queue.size();
Callers
1
num_replicas
Method · 0.80
Calls
1
size
Method · 0.45
Tested by
no test coverage detected