ONNX Runtime
Loading...
Searching...
No Matches
Ort::PrepackedWeightsContainer Struct Reference

The PrepackedWeightsContainer. More...

#include <onnxruntime_cxx_api.h>

Inheritance diagram for Ort::PrepackedWeightsContainer:
Ort::detail::Base< OrtPrepackedWeightsContainer >

Public Types

using Base = detail::Base< OrtPrepackedWeightsContainer >
 No instance is created.
 
- Public Types inherited from Ort::detail::Base< OrtPrepackedWeightsContainer >
using contained_type = OrtPrepackedWeightsContainer
 

Public Member Functions

 PrepackedWeightsContainer (std::nullptr_t)
 Take ownership of a pointer created by C API.
 
 PrepackedWeightsContainer (OrtPrepackedWeightsContainer *p)
 
 PrepackedWeightsContainer ()
 Wraps OrtApi::CreatePrepackedWeightsContainer.
 
- Public Member Functions inherited from Ort::detail::Base< OrtPrepackedWeightsContainer >
constexpr Base ()=default
 
constexpr Base (contained_type *p) noexcept
 
 Base (const Base &)=delete
 
 Base (Base &&v) noexcept
 
 ~Base ()
 
Baseoperator= (const Base &)=delete
 
Baseoperator= (Base &&v) noexcept
 
constexpr operator contained_type * () const noexcept
 
constexpr contained_typeoperator* () const noexcept
 
contained_typerelease ()
 Relinquishes ownership of the contained C object pointer The underlying object is not destroyed.
 

Additional Inherited Members

- Protected Attributes inherited from Ort::detail::Base< OrtPrepackedWeightsContainer >
contained_typep_
 

Detailed Description

The PrepackedWeightsContainer.

Create only and pass to Ort::Session constructor for multiple sessions to share pre-packed weights.

Member Typedef Documentation

◆ Base

Constructor & Destructor Documentation

◆ PrepackedWeightsContainer() [1/3]

Ort::PrepackedWeightsContainer::PrepackedWeightsContainer ( std::nullptr_t  )
inlineexplicit

Take ownership of a pointer created by C API.

◆ PrepackedWeightsContainer() [2/3]

Ort::PrepackedWeightsContainer::PrepackedWeightsContainer ( OrtPrepackedWeightsContainer p)
inlineexplicit

◆ PrepackedWeightsContainer() [3/3]

Ort::PrepackedWeightsContainer::PrepackedWeightsContainer ( )