|
| Session (std::nullptr_t) |
| Create an empty Session object, must be assigned a valid one to be used.
|
|
| Session (const Env &env, const char *model_path, const SessionOptions &options) |
| Wraps OrtApi::CreateSession.
|
|
| Session (const Env &env, const char *model_path, const SessionOptions &options, OrtPrepackedWeightsContainer *prepacked_weights_container) |
| Wraps OrtApi::CreateSessionWithPrepackedWeightsContainer.
|
|
| Session (const Env &env, const void *model_data, size_t model_data_length, const SessionOptions &options) |
| Wraps OrtApi::CreateSessionFromArray.
|
|
| Session (const Env &env, const void *model_data, size_t model_data_length, const SessionOptions &options, OrtPrepackedWeightsContainer *prepacked_weights_container) |
| Wraps OrtApi::CreateSessionFromArrayWithPrepackedWeightsContainer.
|
|
ConstSession | GetConst () const |
|
UnownedSession | GetUnowned () const |
|
std::vector< Value > | Run (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.
|
|
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)
|
|
void | Run (const RunOptions &run_options, const IoBinding &) |
| Wraps OrtApi::RunWithBinding.
|
|
void | RunAsync (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, RunAsyncCallbackFn callback, void *user_data) |
| Run the model asynchronously in a thread owned by intra op thread pool.
|
|
AllocatedStringPtr | EndProfilingAllocated (OrtAllocator *allocator) |
| End profiling and return a copy of the profiling file name.
|
|
size_t | GetInputCount () const |
| Returns the number of model inputs.
|
|
size_t | GetOutputCount () const |
| Returns the number of model outputs.
|
|
size_t | GetOverridableInitializerCount () const |
| Returns the number of inputs that have defaults that can be overridden.
|
|
AllocatedStringPtr | GetInputNameAllocated (size_t index, OrtAllocator *allocator) const |
| Returns a copy of input name at the specified index.
|
|
AllocatedStringPtr | GetOutputNameAllocated (size_t index, OrtAllocator *allocator) const |
| Returns a copy of output name at then specified index.
|
|
AllocatedStringPtr | GetOverridableInitializerNameAllocated (size_t index, OrtAllocator *allocator) const |
| Returns a copy of the overridable initializer name at then specified index.
|
|
uint64_t | GetProfilingStartTimeNs () const |
| Wraps OrtApi::SessionGetProfilingStartTimeNs.
|
|
ModelMetadata | GetModelMetadata () const |
| Wraps OrtApi::SessionGetModelMetadata.
|
|
TypeInfo | GetInputTypeInfo (size_t index) const |
| Wraps OrtApi::SessionGetInputTypeInfo.
|
|
TypeInfo | GetOutputTypeInfo (size_t index) const |
| Wraps OrtApi::SessionGetOutputTypeInfo.
|
|
TypeInfo | GetOverridableInitializerTypeInfo (size_t index) const |
| Wraps OrtApi::SessionGetOverridableInitializerTypeInfo.
|
|
constexpr | Base ()=default |
|
constexpr | Base (contained_type *p) noexcept |
|
| ~Base () |
|
| Base (const Base &)=delete |
|
Base & | operator= (const Base &)=delete |
|
| Base (Base &&v) noexcept |
|
Base & | operator= (Base &&v) noexcept |
|
constexpr | operator contained_type * () const noexcept |
|
contained_type * | release () |
| Relinquishes ownership of the contained C object pointer The underlying object is not destroyed.
|
|
Wrapper around OrtSession.