HDK
|
it is a structure that represents the configuration of an arena based allocator More...
#include <onnxruntime_cxx_api.h>
Public Member Functions | |
ArenaCfg (std::nullptr_t) | |
Create an empty ArenaCfg object, must be assigned a valid one to be used. More... | |
ArenaCfg (size_t max_mem, int arena_extend_strategy, int initial_chunk_size_bytes, int max_dead_bytes_per_chunk) | |
Public Member Functions inherited from Ort::detail::Base< OrtArenaCfg > | |
constexpr | Base ()=default |
constexpr | Base (contained_type *p) noexcept |
Base (const Base &)=delete | |
Base (Base &&v) noexcept | |
~Base () | |
Base & | operator= (const Base &)=delete |
Base & | operator= (Base &&v) noexcept |
constexpr | operator contained_type * () const noexcept |
contained_type * | release () |
Relinquishes ownership of the contained C object pointer The underlying object is not destroyed. More... | |
Additional Inherited Members | |
Public Types inherited from Ort::detail::Base< OrtArenaCfg > | |
using | contained_type = OrtArenaCfg |
Protected Attributes inherited from Ort::detail::Base< OrtArenaCfg > | |
contained_type * | p_ |
it is a structure that represents the configuration of an arena based allocator
Please see docs/C_API.md for details
Definition at line 1869 of file onnxruntime_cxx_api.h.
|
inlineexplicit |
Create an empty ArenaCfg object, must be assigned a valid one to be used.
Definition at line 1870 of file onnxruntime_cxx_api.h.
|
inline |
Wraps OrtApi::CreateArenaCfg
max_mem | - use 0 to allow ORT to choose the default |
arena_extend_strategy | - use -1 to allow ORT to choose the default, 0 = kNextPowerOfTwo, 1 = kSameAsRequested |
initial_chunk_size_bytes | - use -1 to allow ORT to choose the default |
max_dead_bytes_per_chunk | - use -1 to allow ORT to choose the default See docs/C_API.md for details on what the following parameters mean and how to choose these values |
Definition at line 427 of file onnxruntime_cxx_inline.h.