mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
This pull request contains a few changes: 1. Adds support for string ort values. 2. Fixes the training minimal build (that was broken with #16601) by putting custom op registration behind #ifdefs 3. Fixes the iOS pod package generation (that was again broken with #16601) by explicitly providing paths to be copied during pod creation.
56 lines
1.3 KiB
Objective-C
56 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
|