#include <ExternalContext.h>
Definition at line 28 of file ExternalContext.h.
◆ ExternalContext()
| onert::backend::ggml::ExternalContext::ExternalContext |
( |
| ) |
|
Definition at line 62 of file ExternalContext.cc.
64 _ggml_context(std::unique_ptr<ggml_context, decltype(&ggml_free)>(
65 ggml_init({.mem_size = 0, .mem_buffer = nullptr, .no_alloc = true}), &ggml_free))
66{
67 if (_max_num_threads <= -1)
68 countPhysicalCores();
69}
int getConfigInt(const std::string &key)
◆ maxNumThreads()
| int32_t onert::backend::ggml::ExternalContext::maxNumThreads |
( |
| ) |
const |
|
inline |
◆ setMaxNumThreads()
| void onert::backend::ggml::ExternalContext::setMaxNumThreads |
( |
int |
max_num_threads | ) |
|
The documentation for this class was generated from the following files: