HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ort::detail::ConstSessionImpl< T > Struct Template Reference

#include <onnxruntime_cxx_api.h>

+ Inheritance diagram for Ort::detail::ConstSessionImpl< T >:

Public Types

using B = Base< T >
 
- Public Types inherited from Ort::detail::Base< T >
using contained_type = T
 

Public Member Functions

size_t GetInputCount () const
 Returns the number of model inputs. More...
 
size_t GetOutputCount () const
 Returns the number of model outputs. More...
 
size_t GetOverridableInitializerCount () const
 Returns the number of inputs that have defaults that can be overridden. More...
 
AllocatedStringPtr GetInputNameAllocated (size_t index, OrtAllocator *allocator) const
 Returns a copy of input name at the specified index. More...
 
AllocatedStringPtr GetOutputNameAllocated (size_t index, OrtAllocator *allocator) const
 Returns a copy of output name at then specified index. More...
 
AllocatedStringPtr GetOverridableInitializerNameAllocated (size_t index, OrtAllocator *allocator) const
 Returns a copy of the overridable initializer name at then specified index. More...
 
uint64_t GetProfilingStartTimeNs () const
 Wraps OrtApi::SessionGetProfilingStartTimeNs. More...
 
ModelMetadata GetModelMetadata () const
 Wraps OrtApi::SessionGetModelMetadata. More...
 
TypeInfo GetInputTypeInfo (size_t index) const
 Wraps OrtApi::SessionGetInputTypeInfo. More...
 
TypeInfo GetOutputTypeInfo (size_t index) const
 Wraps OrtApi::SessionGetOutputTypeInfo. More...
 
TypeInfo GetOverridableInitializerTypeInfo (size_t index) const
 Wraps OrtApi::SessionGetOverridableInitializerTypeInfo. More...
 
- 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. More...
 

Additional Inherited Members

- Protected Attributes inherited from Ort::detail::Base< T >
contained_typep_ {}
 

Detailed Description

template<typename T>
struct Ort::detail::ConstSessionImpl< T >

Definition at line 997 of file onnxruntime_cxx_api.h.

Member Typedef Documentation

template<typename T>
using Ort::detail::ConstSessionImpl< T >::B = Base<T>

Definition at line 998 of file onnxruntime_cxx_api.h.

Member Function Documentation

template<typename T >
size_t Ort::detail::ConstSessionImpl< T >::GetInputCount ( ) const
inline

Returns the number of model inputs.

Session.

Definition at line 909 of file onnxruntime_cxx_inline.h.

template<typename T >
AllocatedStringPtr Ort::detail::ConstSessionImpl< T >::GetInputNameAllocated ( size_t  index,
OrtAllocator *  allocator 
) const
inline

Returns a copy of input name at the specified index.

Parameters
indexmust less than the value returned by GetInputCount()
allocatorto allocate memory for the copy of the name returned
Returns
a instance of smart pointer that would deallocate the buffer when out of scope. The OrtAllocator instances must be valid at the point of memory release.

Definition at line 930 of file onnxruntime_cxx_inline.h.

template<typename T >
TypeInfo Ort::detail::ConstSessionImpl< T >::GetInputTypeInfo ( size_t  index) const
inline

Wraps OrtApi::SessionGetInputTypeInfo.

Definition at line 965 of file onnxruntime_cxx_inline.h.

template<typename T >
ModelMetadata Ort::detail::ConstSessionImpl< T >::GetModelMetadata ( ) const
inline

Wraps OrtApi::SessionGetModelMetadata.

Definition at line 958 of file onnxruntime_cxx_inline.h.

template<typename T >
size_t Ort::detail::ConstSessionImpl< T >::GetOutputCount ( ) const
inline

Returns the number of model outputs.

Definition at line 916 of file onnxruntime_cxx_inline.h.

template<typename T >
AllocatedStringPtr Ort::detail::ConstSessionImpl< T >::GetOutputNameAllocated ( size_t  index,
OrtAllocator *  allocator 
) const
inline

Returns a copy of output name at then specified index.

Parameters
indexmust less than the value returned by GetOutputCount()
allocatorto allocate memory for the copy of the name returned
Returns
a instance of smart pointer that would deallocate the buffer when out of scope. The OrtAllocator instances must be valid at the point of memory release.

Definition at line 937 of file onnxruntime_cxx_inline.h.

template<typename T >
TypeInfo Ort::detail::ConstSessionImpl< T >::GetOutputTypeInfo ( size_t  index) const
inline

Wraps OrtApi::SessionGetOutputTypeInfo.

Definition at line 972 of file onnxruntime_cxx_inline.h.

template<typename T >
size_t Ort::detail::ConstSessionImpl< T >::GetOverridableInitializerCount ( ) const
inline

Returns the number of inputs that have defaults that can be overridden.

Definition at line 923 of file onnxruntime_cxx_inline.h.

template<typename T >
AllocatedStringPtr Ort::detail::ConstSessionImpl< T >::GetOverridableInitializerNameAllocated ( size_t  index,
OrtAllocator *  allocator 
) const
inline

Returns a copy of the overridable initializer name at then specified index.

Parameters
indexmust less than the value returned by GetOverridableInitializerCount()
allocatorto allocate memory for the copy of the name returned
Returns
a instance of smart pointer that would deallocate the buffer when out of scope. The OrtAllocator instances must be valid at the point of memory release.Wraps OrtApi::SessionGetOverridableInitializerName

Definition at line 944 of file onnxruntime_cxx_inline.h.

template<typename T >
TypeInfo Ort::detail::ConstSessionImpl< T >::GetOverridableInitializerTypeInfo ( size_t  index) const
inline

Wraps OrtApi::SessionGetOverridableInitializerTypeInfo.

Definition at line 979 of file onnxruntime_cxx_inline.h.

template<typename T >
uint64_t Ort::detail::ConstSessionImpl< T >::GetProfilingStartTimeNs ( ) const
inline

Wraps OrtApi::SessionGetProfilingStartTimeNs.

Definition at line 951 of file onnxruntime_cxx_inline.h.


The documentation for this struct was generated from the following files: