c76787fd3e
* initial ext files * add a workable version of spm for extensions * update * update pipeline * update pipelines * fix dev/release pipelines for extensions pod * fix dev pipelines for extensions pod * fix release pipelines for extensions pod * fix dev pipelines for extensions pod * adding empty include folder for configuring extensions target path * test * test * test * revert pipeline changes * revert gitignore changes * add ext pod binary target for release pipeline * add pipeline for extensions * update * update package.swift * update latest from branch * update * fix * fix * update * try dummy empty file * test * update package.swift to use fatalerror * syntax * try gitignore revert * update gitignore * add -list * onnxruntime-Package * update using onnxruntime-Package * update dev pipeline * fix dev pipelines * syntax * pull extensions/ * update pipelines again * syntax * variables * fix * fix -r * update Package.swift * update Package.swift * minor update * address pr comments * minor updates * fix * refine messages * syntax * syntax again * address pr comments partial * address pr comments * add .h header file and notes * minor updates * syncing objc source files and add code to register custom ops using function pointer * format * move to the header for function doc --------- Co-authored-by: rachguo <rachguo@rachguos-Mini.attlocal.net> Co-authored-by: rachguo <rachguo@rachguos-Mac-mini.local>
57 lines
1.3 KiB
Objective-C
57 lines
1.3 KiB
Objective-C
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/**
|
|
* The ORT logging verbosity levels.
|
|
*/
|
|
typedef NS_ENUM(int32_t, ORTLoggingLevel) {
|
|
ORTLoggingLevelVerbose,
|
|
ORTLoggingLevelInfo,
|
|
ORTLoggingLevelWarning,
|
|
ORTLoggingLevelError,
|
|
ORTLoggingLevelFatal,
|
|
};
|
|
|
|
/**
|
|
* The ORT value types.
|
|
* Currently, a subset of all types is supported.
|
|
*/
|
|
typedef NS_ENUM(int32_t, ORTValueType) {
|
|
ORTValueTypeUnknown,
|
|
ORTValueTypeTensor,
|
|
};
|
|
|
|
/**
|
|
* The ORT tensor element data types.
|
|
* Currently, a subset of all types is supported.
|
|
*/
|
|
typedef NS_ENUM(int32_t, ORTTensorElementDataType) {
|
|
ORTTensorElementDataTypeUndefined,
|
|
ORTTensorElementDataTypeFloat,
|
|
ORTTensorElementDataTypeInt8,
|
|
ORTTensorElementDataTypeUInt8,
|
|
ORTTensorElementDataTypeInt32,
|
|
ORTTensorElementDataTypeUInt32,
|
|
ORTTensorElementDataTypeInt64,
|
|
ORTTensorElementDataTypeUInt64,
|
|
ORTTensorElementDataTypeString,
|
|
};
|
|
|
|
/**
|
|
* The ORT graph optimization levels.
|
|
* See here for more details:
|
|
* https://onnxruntime.ai/docs/performance/model-optimizations/graph-optimizations.html
|
|
*/
|
|
typedef NS_ENUM(int32_t, ORTGraphOptimizationLevel) {
|
|
ORTGraphOptimizationLevelNone,
|
|
ORTGraphOptimizationLevelBasic,
|
|
ORTGraphOptimizationLevelExtended,
|
|
ORTGraphOptimizationLevelAll,
|
|
};
|
|
|
|
NS_ASSUME_NONNULL_END
|