mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
53 lines
1.2 KiB
Objective-C
53 lines
1.2 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,
|
|
};
|
|
|
|
/**
|
|
* The ORT graph optimization levels.
|
|
* See here for more details:
|
|
* https://www.onnxruntime.ai/docs/resources/graph-optimizations.html
|
|
*/
|
|
typedef NS_ENUM(int32_t, ORTGraphOptimizationLevel) {
|
|
ORTGraphOptimizationLevelNone,
|
|
ORTGraphOptimizationLevelBasic,
|
|
ORTGraphOptimizationLevelExtended,
|
|
ORTGraphOptimizationLevelAll,
|
|
};
|
|
|
|
NS_ASSUME_NONNULL_END
|