ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nnfw::cker::eigen_support::EigenThreadPoolWrapper Class Reference

#include <EigenSupport.h>

Collaboration diagram for nnfw::cker::eigen_support::EigenThreadPoolWrapper:

Public Member Functions

 EigenThreadPoolWrapper (Eigen::ThreadPool *pool)
 
 ~EigenThreadPoolWrapper () override
 
void Schedule (std::function< void()> fn) override
 
int NumThreads () const override
 
int CurrentThreadId () const override
 

Detailed Description

Definition at line 70 of file EigenSupport.h.

Constructor & Destructor Documentation

◆ EigenThreadPoolWrapper()

nnfw::cker::eigen_support::EigenThreadPoolWrapper::EigenThreadPoolWrapper ( Eigen::ThreadPool *  pool)
inlineexplicit

Definition at line 74 of file EigenSupport.h.

74: pool_(pool) {}

◆ ~EigenThreadPoolWrapper()

nnfw::cker::eigen_support::EigenThreadPoolWrapper::~EigenThreadPoolWrapper ( )
inlineoverride

Definition at line 75 of file EigenSupport.h.

75{}

Member Function Documentation

◆ CurrentThreadId()

int nnfw::cker::eigen_support::EigenThreadPoolWrapper::CurrentThreadId ( ) const
inlineoverride

Definition at line 79 of file EigenSupport.h.

79{ return pool_->CurrentThreadId(); }

◆ NumThreads()

int nnfw::cker::eigen_support::EigenThreadPoolWrapper::NumThreads ( ) const
inlineoverride

Definition at line 78 of file EigenSupport.h.

78{ return pool_->NumThreads(); }

◆ Schedule()

void nnfw::cker::eigen_support::EigenThreadPoolWrapper::Schedule ( std::function< void()>  fn)
inlineoverride

Definition at line 77 of file EigenSupport.h.

77{ pool_->Schedule(std::move(fn)); }

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