OnnxRuntime
Loading...
Searching...
No Matches
Ort::Allocator Struct Reference

Wrapper around OrtAllocator. More...

#include <onnxruntime_cxx_api.h>

Inheritance diagram for Ort::Allocator:
Ort::detail::AllocatorImpl< OrtAllocator > Ort::detail::Base< T >

Public Member Functions

 Allocator (std::nullptr_t)
 Convenience to create a class member and then replace with an instance.
 
 Allocator (const Session &session, const OrtMemoryInfo *)
 
- Public Member Functions inherited from Ort::detail::AllocatorImpl< OrtAllocator >
void * Alloc (size_t size)
 
MemoryAllocation GetAllocation (size_t size)
 
void Free (void *p)
 
ConstMemoryInfo GetInfo () const
 
- Public Member Functions inherited from Ort::detail::Base< T >
constexpr Base ()=default
 
constexpr Base (contained_type *p) noexcept
 
 ~Base ()
 
 Base (const Base &)=delete
 
Baseoperator= (const Base &)=delete
 
 Base (Base &&v) noexcept
 
Baseoperator= (Base &&v) noexcept
 
constexpr operator contained_type * () const noexcept
 
contained_typerelease ()
 Relinquishes ownership of the contained C object pointer The underlying object is not destroyed.
 

Additional Inherited Members

- Public Types inherited from Ort::detail::AllocatorImpl< OrtAllocator >
using B = Base< OrtAllocator >
 
- Public Types inherited from Ort::detail::Base< T >
using contained_type = T
 
- Protected Attributes inherited from Ort::detail::Base< T >
contained_typep_ {}
 

Detailed Description

Wrapper around OrtAllocator.

Constructor & Destructor Documentation

◆ Allocator() [1/2]

Ort::Allocator::Allocator ( std::nullptr_t  )
inlineexplicit

Convenience to create a class member and then replace with an instance.

◆ Allocator() [2/2]

Ort::Allocator::Allocator ( const Session session,
const OrtMemoryInfo  
)