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

Create and own custom defined operation. More...

#include <onnxruntime_cxx_api.h>

+ Inheritance diagram for Ort::Op:

Public Member Functions

 Op (std::nullptr_t)
 Create an empty Operator object, must be assigned a valid one to be used. More...
 
 Op (OrtOp *)
 Take ownership of the OrtOp. More...
 
void Invoke (const OrtKernelContext *context, const Value *input_values, size_t input_count, Value *output_values, size_t output_count)
 
void Invoke (const OrtKernelContext *context, const OrtValue *const *input_values, size_t input_count, OrtValue *const *output_values, size_t output_count)
 
- Public Member Functions inherited from Ort::detail::Base< OrtOp >
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...
 

Static Public Member Functions

static Op Create (const OrtKernelInfo *info, const char *op_name, const char *domain, int version, const char **type_constraint_names, const ONNXTensorElementDataType *type_constraint_values, size_t type_constraint_count, const OpAttr *attr_values, size_t attr_count, size_t input_count, size_t output_count)
 

Additional Inherited Members

- Public Types inherited from Ort::detail::Base< OrtOp >
using contained_type = OrtOp
 
- Protected Attributes inherited from Ort::detail::Base< OrtOp >
contained_typep_
 

Detailed Description

Create and own custom defined operation.

Definition at line 2136 of file onnxruntime_cxx_api.h.

Constructor & Destructor Documentation

Ort::Op::Op ( std::nullptr_t  )
inlineexplicit

Create an empty Operator object, must be assigned a valid one to be used.

Definition at line 2137 of file onnxruntime_cxx_api.h.

Ort::Op::Op ( OrtOp *  )
explicit

Take ownership of the OrtOp.

Member Function Documentation

static Op Ort::Op::Create ( const OrtKernelInfo *  info,
const char *  op_name,
const char *  domain,
int  version,
const char **  type_constraint_names,
const ONNXTensorElementDataType *  type_constraint_values,
size_t  type_constraint_count,
const OpAttr attr_values,
size_t  attr_count,
size_t  input_count,
size_t  output_count 
)
static
void Ort::Op::Invoke ( const OrtKernelContext *  context,
const Value input_values,
size_t  input_count,
Value output_values,
size_t  output_count 
)
void Ort::Op::Invoke ( const OrtKernelContext *  context,
const OrtValue *const *  input_values,
size_t  input_count,
OrtValue *const *  output_values,
size_t  output_count 
)

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