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

Wrapper around OrtValueInfo. More...

#include <onnxruntime_cxx_api.h>

Inheritance diagram for Ort::ValueInfo:
Ort::detail::ConstValueInfoImpl< OrtValueInfo > Ort::detail::Base< T >

Public Member Functions

 ValueInfo ()=default
 
 ValueInfo (std::nullptr_t)
 
 ValueInfo (OrtValueInfo *p)
 Take ownership of a pointer created by C API.
 
 ValueInfo (const std::string &name, const ConstTypeInfo &type_info)
 
ConstValueInfo GetConst () const
 
- Public Member Functions inherited from Ort::detail::ConstValueInfoImpl< OrtValueInfo >
std::string GetName () const
 < A wrapper around OrtApi::GetValueInfoName
 
ConstTypeInfo TypeInfo () const
 < A wrapper around OrtApi::GetValueInfoTypeInfo
 
ValueInfoConsumerProducerInfo GetProducerNode () const
 
std::vector< ValueInfoConsumerProducerInfoGetConsumers () const
 < A wrapper around OrtApi::ValueInfo_GetValueConsumers
 
Status GetInitializer (ConstValue &value) const
 < A wrapper around OrtApi::ValueInfo_GetInitializerValue
 
Status GetExternalInitializerInfo (ExternalInitializerInfo &info) const
 < A wrapper around OrtApi::ValueInfo_GetExternalInitializerInfo
 
bool IsRequiredGraphInput () const
 < A wrapper around OrtApi::ValueInfo_IsRequiredGraphInput
 
bool IsOptionalGraphInput () const
 < A wrapper around OrtApi::ValueInfo_IsOptionalGraphInput
 
bool IsGraphOutput () const
 < A wrapper around OrtApi::ValueInfo_IsGraphOutput
 
bool IsConstantInitializer () const
 < A wrapper around OrtApi::ValueInfo_IsConstantInitializer
 
bool IsFromOuterScope () const
 < A wrapper around OrtApi::ValueInfo_IsFromOuterScope
 
- 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
 
constexpr contained_typeoperator* () 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::ConstValueInfoImpl< OrtValueInfo >
using B = Base< OrtValueInfo >
 
- 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 OrtValueInfo.

Constructor & Destructor Documentation

◆ ValueInfo() [1/4]

Ort::ValueInfo::ValueInfo ( )
default

◆ ValueInfo() [2/4]

Ort::ValueInfo::ValueInfo ( std::nullptr_t  )
inlineexplicit

No instance is created

◆ ValueInfo() [3/4]

Ort::ValueInfo::ValueInfo ( OrtValueInfo p)
inlineexplicit

Take ownership of a pointer created by C API.

◆ ValueInfo() [4/4]

Ort::ValueInfo::ValueInfo ( const std::string &  name,
const ConstTypeInfo type_info 
)
explicit

Member Function Documentation

◆ GetConst()

ConstValueInfo Ort::ValueInfo::GetConst ( ) const
inline