|
24.02
|
#include <Threadpool.hpp>
Public Member Functions | |
| Threadpool (std::size_t numThreads, IRuntime *runtimePtr, std::vector< std::shared_ptr< IWorkingMemHandle >> memHandles) | |
| ~Threadpool () | |
| void | LoadMemHandles (std::vector< std::shared_ptr< IWorkingMemHandle >> memHandles) |
| void | UnloadMemHandles (NetworkId networkId) |
| void | Schedule (NetworkId networkId, const InputTensors &inputTensors, const OutputTensors &outputTensors, const QosExecPriority priority, std::shared_ptr< IAsyncExecutionCallback > cb) |
| Schedule an asynchronous execution on the loaded network. More... | |
| void | TerminateThreadPool () noexcept |
Definition at line 30 of file Threadpool.hpp.
| Threadpool | ( | std::size_t | numThreads, |
| IRuntime * | runtimePtr, | ||
| std::vector< std::shared_ptr< IWorkingMemHandle >> | memHandles | ||
| ) |
Definition at line 16 of file Threadpool.cpp.
References Threadpool::LoadMemHandles().
|
inline |
Definition at line 37 of file Threadpool.hpp.
References Threadpool::TerminateThreadPool().
| void LoadMemHandles | ( | std::vector< std::shared_ptr< IWorkingMemHandle >> | memHandles | ) |
Definition at line 29 of file Threadpool.cpp.
Referenced by Threadpool::Threadpool().
| void Schedule | ( | NetworkId | networkId, |
| const InputTensors & | inputTensors, | ||
| const OutputTensors & | outputTensors, | ||
| const QosExecPriority | priority, | ||
| std::shared_ptr< IAsyncExecutionCallback > | cb | ||
| ) |
Schedule an asynchronous execution on the loaded network.
Definition at line 69 of file Threadpool.cpp.
References armnn::High, armnn::Low, and armnn::Medium.
|
noexcept |
| void UnloadMemHandles | ( | NetworkId | networkId | ) |
Definition at line 57 of file Threadpool.cpp.