HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ort::Experimental::Session Struct Reference

#include <experimental_onnxruntime_cxx_api.h>

+ Inheritance diagram for Ort::Experimental::Session:

Public Member Functions

 Session (Env &env, std::basic_string< ORTCHAR_T > &model_path, SessionOptions &options)
 
 Session (Env &env, void *model_data, size_t model_data_length, SessionOptions &options)
 
std::vector< Ort::ValueRun (const std::vector< std::string > &input_names, const std::vector< Ort::Value > &input_values, const std::vector< std::string > &output_names, const RunOptions &run_options=RunOptions())
 
void Run (const std::vector< std::string > &input_names, const std::vector< Ort::Value > &input_values, const std::vector< std::string > &output_names, std::vector< Ort::Value > &output_values, const RunOptions &run_options=RunOptions())
 
std::vector< std::stringGetInputNames () const
 
std::vector< std::stringGetOutputNames () const
 
std::vector< std::stringGetOverridableInitializerNames () const
 
std::vector< std::vector
< int64_t > > 
GetInputShapes () const
 
std::vector< std::vector
< int64_t > > 
GetOutputShapes () const
 
std::vector< std::vector
< int64_t > > 
GetOverridableInitializerShapes () const
 
- Public Member Functions inherited from Ort::Session
 Session (std::nullptr_t)
 Create an empty Session object, must be assigned a valid one to be used. More...
 
 Session (const Env &env, const ORTCHAR_T *model_path, const SessionOptions &options)
 Wraps OrtApi::CreateSession. More...
 
 Session (const Env &env, const ORTCHAR_T *model_path, const SessionOptions &options, OrtPrepackedWeightsContainer *prepacked_weights_container)
 Wraps OrtApi::CreateSessionWithPrepackedWeightsContainer. More...
 
 Session (const Env &env, const void *model_data, size_t model_data_length, const SessionOptions &options)
 Wraps OrtApi::CreateSessionFromArray. More...
 
 Session (const Env &env, const void *model_data, size_t model_data_length, const SessionOptions &options, OrtPrepackedWeightsContainer *prepacked_weights_container)
 Wraps OrtApi::CreateSessionFromArrayWithPrepackedWeightsContainer. More...
 
ConstSession GetConst () const
 
UnownedSession GetUnowned () const
 
- Public Member Functions inherited from Ort::detail::SessionImpl< OrtSession >
std::vector< ValueRun (const RunOptions &run_options, const char *const *input_names, const Value *input_values, size_t input_count, const char *const *output_names, size_t output_count)
 Run the model returning results in an Ort allocated vector. More...
 
void Run (const RunOptions &run_options, const char *const *input_names, const Value *input_values, size_t input_count, const char *const *output_names, Value *output_values, size_t output_count)
 Run the model returning results in user provided outputs Same as Run(const RunOptions&, const char* const*, const Value*, size_t,const char* const*, size_t) More...
 
void Run (const RunOptions &run_options, const IoBinding &)
 Wraps OrtApi::RunWithBinding. More...
 
AllocatedStringPtr EndProfilingAllocated (OrtAllocator *allocator)
 End profiling and return a copy of the profiling file name. More...
 
- Public Member Functions inherited from Ort::detail::ConstSessionImpl< OrtSession >
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< OrtSession >
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
 
contained_typerelease ()
 Relinquishes ownership of the contained C object pointer The underlying object is not destroyed. More...
 

Additional Inherited Members

- Public Types inherited from Ort::detail::SessionImpl< OrtSession >
using B = ConstSessionImpl< OrtSession >
 
using B = Base< OrtSession >
 
- Public Types inherited from Ort::detail::ConstSessionImpl< OrtSession >
using B = Base< OrtSession >
 
- Public Types inherited from Ort::detail::Base< OrtSession >
using contained_type = OrtSession
 
- Protected Attributes inherited from Ort::detail::Base< OrtSession >
contained_typep_
 

Detailed Description

Definition at line 25 of file experimental_onnxruntime_cxx_api.h.

Constructor & Destructor Documentation

Ort::Experimental::Session::Session ( Env env,
std::basic_string< ORTCHAR_T > &  model_path,
SessionOptions options 
)
inline

Definition at line 26 of file experimental_onnxruntime_cxx_api.h.

Ort::Experimental::Session::Session ( Env env,
void model_data,
size_t  model_data_length,
SessionOptions options 
)
inline

Definition at line 28 of file experimental_onnxruntime_cxx_api.h.

Member Function Documentation

std::vector< std::string > Ort::Experimental::Session::GetInputNames ( ) const
inline

Definition at line 33 of file experimental_onnxruntime_cxx_inline.h.

std::vector< std::vector< int64_t > > Ort::Experimental::Session::GetInputShapes ( ) const
inline

Definition at line 66 of file experimental_onnxruntime_cxx_inline.h.

std::vector< std::string > Ort::Experimental::Session::GetOutputNames ( ) const
inline

Definition at line 44 of file experimental_onnxruntime_cxx_inline.h.

std::vector< std::vector< int64_t > > Ort::Experimental::Session::GetOutputShapes ( ) const
inline

Definition at line 73 of file experimental_onnxruntime_cxx_inline.h.

std::vector< std::string > Ort::Experimental::Session::GetOverridableInitializerNames ( ) const
inline

Definition at line 55 of file experimental_onnxruntime_cxx_inline.h.

std::vector< std::vector< int64_t > > Ort::Experimental::Session::GetOverridableInitializerShapes ( ) const
inline

Definition at line 80 of file experimental_onnxruntime_cxx_inline.h.

std::vector< Ort::Value > Ort::Experimental::Session::Run ( const std::vector< std::string > &  input_names,
const std::vector< Ort::Value > &  input_values,
const std::vector< std::string > &  output_names,
const RunOptions run_options = RunOptions() 
)
inline

Definition at line 11 of file experimental_onnxruntime_cxx_inline.h.

void Ort::Experimental::Session::Run ( const std::vector< std::string > &  input_names,
const std::vector< Ort::Value > &  input_values,
const std::vector< std::string > &  output_names,
std::vector< Ort::Value > &  output_values,
const RunOptions run_options = RunOptions() 
)
inline

Definition at line 20 of file experimental_onnxruntime_cxx_inline.h.


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