HDK
|
#include <onnxruntime_cxx_api.h>
Public Types | |
using | B = ConstSessionImpl< T > |
using | B = Base< T > |
Public Types inherited from Ort::detail::ConstSessionImpl< T > | |
using | B = Base< T > |
Public Types inherited from Ort::detail::Base< T > | |
using | contained_type = T |
Public Member Functions | |
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. 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< T > | |
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 | |
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. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Ort::detail::Base< T > | |
contained_type * | p_ {} |
Definition at line 733 of file onnxruntime_cxx_api.h.
using Ort::detail::SessionImpl< T >::B = ConstSessionImpl<T> |
Definition at line 734 of file onnxruntime_cxx_api.h.
using Ort::detail::ConstSessionImpl< T >::B = Base<T> |
Definition at line 690 of file onnxruntime_cxx_api.h.
|
inline |
End profiling and return a copy of the profiling file name.
allocator | to allocate memory for the copy of the string returned |
Definition at line 904 of file onnxruntime_cxx_inline.h.
|
inline |
Run the model returning results in an Ort allocated vector.
Wraps OrtApi::Run
The caller provides a list of inputs and a list of the desired outputs to return.
See the output logs for more information on warnings/errors that occur while processing the model. Common errors are.. (TODO)
[in] | run_options | |
[in] | input_names | Array of null terminated strings of length input_count that is the list of input names |
[in] | input_values | Array of Value objects of length input_count that is the list of input values |
[in] | input_count | Number of inputs (the size of the input_names & input_values arrays) |
[in] | output_names | Array of C style strings of length output_count that is the list of output names |
[in] | output_count | Number of outputs (the size of the output_names array) |
Definition at line 879 of file onnxruntime_cxx_inline.h.
|
inline |
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)
Definition at line 890 of file onnxruntime_cxx_inline.h.
|
inline |
Wraps OrtApi::RunWithBinding.
Definition at line 899 of file onnxruntime_cxx_inline.h.