ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert::backend::xnnpack::ExternalContext Class Reference

#include <ExternalContext.h>

Public Member Functions

 ExternalContext (size_t num_threads)
 
pthreadpool * getThreadPool ()
 

Detailed Description

Definition at line 30 of file ExternalContext.h.

Constructor & Destructor Documentation

◆ ExternalContext()

onert::backend::xnnpack::ExternalContext::ExternalContext ( size_t  num_threads)

Definition at line 28 of file ExternalContext.cc.

29 : _threadpool(pthreadpool_create(num_threads), pthreadpool_destroy)
30{
31 assert(_threadpool);
32}

Member Function Documentation

◆ getThreadPool()

pthreadpool * onert::backend::xnnpack::ExternalContext::getThreadPool ( )
inline

Definition at line 36 of file ExternalContext.h.

36{ return _threadpool.get(); }

The documentation for this class was generated from the following files: