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

This entire structure is deprecated, but we not marking it as a whole yet since we want to preserve for the next release. More...

#include <onnxruntime_cxx_api.h>

Public Member Functions

 CustomOpApi (const OrtApi &api)
 
OrtTensorTypeAndShapeInfo * GetTensorTypeAndShape (_In_ const OrtValue *value)
 
size_t GetTensorShapeElementCount (_In_ const OrtTensorTypeAndShapeInfo *info)
 
ONNXTensorElementDataType GetTensorElementType (const OrtTensorTypeAndShapeInfo *info)
 
size_t GetDimensionsCount (_In_ const OrtTensorTypeAndShapeInfo *info)
 
void GetDimensions (_In_ const OrtTensorTypeAndShapeInfo *info, _Out_ int64_t *dim_values, size_t dim_values_length)
 
void SetDimensions (OrtTensorTypeAndShapeInfo *info, _In_ const int64_t *dim_values, size_t dim_count)
 
template<typename T >
T * GetTensorMutableData (_Inout_ OrtValue *value)
 
template<typename T >
const T * GetTensorData (_Inout_ const OrtValue *value)
 
const OrtMemoryInfoGetTensorMemoryInfo (_In_ const OrtValue *value)
 
std::vector< int64_t > GetTensorShape (const OrtTensorTypeAndShapeInfo *info)
 
void ReleaseTensorTypeAndShapeInfo (OrtTensorTypeAndShapeInfo *input)
 
size_t KernelContext_GetInputCount (const OrtKernelContext *context)
 
const OrtValueKernelContext_GetInput (const OrtKernelContext *context, _In_ size_t index)
 
size_t KernelContext_GetOutputCount (const OrtKernelContext *context)
 
OrtValueKernelContext_GetOutput (OrtKernelContext *context, _In_ size_t index, _In_ const int64_t *dim_values, size_t dim_count)
 
voidKernelContext_GetGPUComputeStream (const OrtKernelContext *context)
 
void ThrowOnError (OrtStatus *result)
 
OrtOpAttr * CreateOpAttr (_In_ const char *name, _In_ const void *data, _In_ int len, _In_ OrtOpAttrType type)
 
void ReleaseOpAttr (_Frees_ptr_opt_ OrtOpAttr *op_attr)
 
OrtOp * CreateOp (_In_ const OrtKernelInfo *info, _In_ const char *op_name, _In_ const char *domain, _In_ int version, _In_opt_ const char **type_constraint_names, _In_opt_ const ONNXTensorElementDataType *type_constraint_values, _In_opt_ int type_constraint_count, _In_opt_ const OrtOpAttr *const *attr_values, _In_opt_ int attr_count, _In_ int input_count, _In_ int output_count)
 
void InvokeOp (_In_ const OrtKernelContext *context, _In_ const OrtOp *ort_op, _In_ const OrtValue *const *input_values, _In_ int input_count, _Inout_ OrtValue *const *output_values, _In_ int output_count)
 
void ReleaseOp (_Frees_ptr_opt_ OrtOp *ort_op)
 
template<typename T >
KernelInfoGetAttribute (_In_ const OrtKernelInfo *info, _In_ const char *name)
 
OrtKernelInfoCopyKernelInfo (_In_ const OrtKernelInfo *info)
 
void ReleaseKernelInfo (_Frees_ptr_opt_ OrtKernelInfo *info_copy)
 

Detailed Description

This entire structure is deprecated, but we not marking it as a whole yet since we want to preserve for the next release.

Definition at line 1605 of file onnxruntime_cxx_api.h.

Constructor & Destructor Documentation

Ort::CustomOpApi::CustomOpApi ( const OrtApi api)
inline

Definition at line 1606 of file onnxruntime_cxx_api.h.

Member Function Documentation

OrtKernelInfo* Ort::CustomOpApi::CopyKernelInfo ( _In_ const OrtKernelInfo info)
Deprecated:
use Ort::KernelInfo::Copy querying attributes [[deprecated]] This interface is not exception safe
OrtOp* Ort::CustomOpApi::CreateOp ( _In_ const OrtKernelInfo info,
_In_ const char *  op_name,
_In_ const char *  domain,
_In_ int  version,
_In_opt_ const char **  type_constraint_names,
_In_opt_ const ONNXTensorElementDataType type_constraint_values,
_In_opt_ int  type_constraint_count,
_In_opt_ const OrtOpAttr *const attr_values,
_In_opt_ int  attr_count,
_In_ int  input_count,
_In_ int  output_count 
)
Deprecated:
use Ort::Op [[deprecated]] This interface is not exception safe.
OrtOpAttr* Ort::CustomOpApi::CreateOpAttr ( _In_ const char *  name,
_In_ const void data,
_In_ int  len,
_In_ OrtOpAttrType  type 
)
Deprecated:
use Ort::OpAttr [[deprecated]] This interface is not exception safe.
void Ort::CustomOpApi::GetDimensions ( _In_ const OrtTensorTypeAndShapeInfo *  info,
_Out_ int64_t *  dim_values,
size_t  dim_values_length 
)
Deprecated:
use Ort::TensorTypeAndShapeInfo::GetShape() [[deprecated]] This interface is redundant.
size_t Ort::CustomOpApi::GetDimensionsCount ( _In_ const OrtTensorTypeAndShapeInfo *  info)
Deprecated:
use Ort::TensorTypeAndShapeInfo::GetDimensionsCount() [[deprecated]] This interface is redundant.
template<typename T >
const T* Ort::CustomOpApi::GetTensorData ( _Inout_ const OrtValue value)
Deprecated:
use Ort::Value::GetTensorData() [[deprecated]] This interface is redundant.
ONNXTensorElementDataType Ort::CustomOpApi::GetTensorElementType ( const OrtTensorTypeAndShapeInfo *  info)
Deprecated:
use Ort::TensorTypeAndShapeInfo::GetElementType() [[deprecated]] This interface is redundant.
const OrtMemoryInfo* Ort::CustomOpApi::GetTensorMemoryInfo ( _In_ const OrtValue value)
Deprecated:
use Ort::Value::GetTensorMemoryInfo() [[deprecated]] This interface is redundant.
template<typename T >
T* Ort::CustomOpApi::GetTensorMutableData ( _Inout_ OrtValue value)
Deprecated:
use Ort::Value::GetTensorMutableData() [[deprecated]] This interface is redundant.
std::vector<int64_t> Ort::CustomOpApi::GetTensorShape ( const OrtTensorTypeAndShapeInfo *  info)
Deprecated:
use Ort::TensorTypeAndShapeInfo::GetShape() [[deprecated]] This interface is redundant.
size_t Ort::CustomOpApi::GetTensorShapeElementCount ( _In_ const OrtTensorTypeAndShapeInfo *  info)
Deprecated:
use Ort::TensorTypeAndShapeInfo::GetElementCount() [[deprecated]] This interface is redundant.
OrtTensorTypeAndShapeInfo* Ort::CustomOpApi::GetTensorTypeAndShape ( _In_ const OrtValue value)
Deprecated:
use Ort::Value::GetTensorTypeAndShape() [[deprecated]] This interface produces a pointer that must be released. Not exception safe.
void Ort::CustomOpApi::InvokeOp ( _In_ const OrtKernelContext context,
_In_ const OrtOp *  ort_op,
_In_ const OrtValue *const input_values,
_In_ int  input_count,
_Inout_ OrtValue *const output_values,
_In_ int  output_count 
)
Deprecated:
use Ort::Op::Invoke [[deprecated]] This interface is redundant
void* Ort::CustomOpApi::KernelContext_GetGPUComputeStream ( const OrtKernelContext context)
Deprecated:
use Ort::KernelContext::GetGPUComputeStream [[deprecated]] This interface is redundant.
const OrtValue* Ort::CustomOpApi::KernelContext_GetInput ( const OrtKernelContext context,
_In_ size_t  index 
)
Deprecated:
use Ort::KernelContext::GetInput [[deprecated]] This interface is redundant.
size_t Ort::CustomOpApi::KernelContext_GetInputCount ( const OrtKernelContext context)
Deprecated:
use Ort::KernelContext::GetInputCount [[deprecated]] This interface is redundant.
OrtValue* Ort::CustomOpApi::KernelContext_GetOutput ( OrtKernelContext context,
_In_ size_t  index,
_In_ const int64_t *  dim_values,
size_t  dim_count 
)
Deprecated:
use Ort::KernelContext::GetOutput [[deprecated]] This interface is redundant.
size_t Ort::CustomOpApi::KernelContext_GetOutputCount ( const OrtKernelContext context)
Deprecated:
use Ort::KernelContext::GetOutputCount [[deprecated]] This interface is redundant.
template<typename T >
T Ort::CustomOpApi::KernelInfoGetAttribute ( _In_ const OrtKernelInfo info,
_In_ const char *  name 
)
Deprecated:
use Ort::KernelInfo for automatic lifespan management or for querying attributes [[deprecated]] This interface is redundant
void Ort::CustomOpApi::ReleaseKernelInfo ( _Frees_ptr_opt_ OrtKernelInfo info_copy)
Deprecated:
use Ort::KernelInfo for lifespan management querying attributes [[deprecated]] This interface is not exception safe
void Ort::CustomOpApi::ReleaseOp ( _Frees_ptr_opt_ OrtOp *  ort_op)
Deprecated:
use Ort::Op for automatic lifespan management. [[deprecated]] This interface is not exception safe.
void Ort::CustomOpApi::ReleaseOpAttr ( _Frees_ptr_opt_ OrtOpAttr *  op_attr)
Deprecated:
use Ort::OpAttr [[deprecated]] This interface is not exception safe.
void Ort::CustomOpApi::ReleaseTensorTypeAndShapeInfo ( OrtTensorTypeAndShapeInfo *  input)
Deprecated:
use TensorTypeAndShapeInfo instances for automatic ownership. [[deprecated]] This interface is not exception safe.
void Ort::CustomOpApi::SetDimensions ( OrtTensorTypeAndShapeInfo *  info,
_In_ const int64_t *  dim_values,
size_t  dim_count 
)
Deprecated:
[[deprecated]] This interface sets dimensions to TensorTypeAndShapeInfo, but has no effect on the OrtValue.
void Ort::CustomOpApi::ThrowOnError ( OrtStatus *  result)
Deprecated:
use Ort::ThrowOnError() [[deprecated]] This interface is redundant.

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