From 818198b789f304c0a94076785dacfca257de379c Mon Sep 17 00:00:00 2001 From: Manuel de la Pena Date: Thu, 5 Aug 2021 01:02:27 -0400 Subject: [PATCH] [MLCompute] Add support for Xcode 13 beta 4. (#12348) --- src/MLCompute/MLHelpers.cs | 20 +++ src/mlcompute.cs | 142 +++++++++++++++++- tests/xtro-sharpie/MacCatalyst-MLCompute.todo | 37 ----- tests/xtro-sharpie/common-MLCompute.ignore | 4 +- tests/xtro-sharpie/iOS-MLCompute.todo | 37 ----- tests/xtro-sharpie/macOS-MLCompute.todo | 37 ----- tests/xtro-sharpie/tvOS-MLCompute.todo | 37 ----- 7 files changed, 163 insertions(+), 151 deletions(-) delete mode 100644 tests/xtro-sharpie/MacCatalyst-MLCompute.todo delete mode 100644 tests/xtro-sharpie/iOS-MLCompute.todo delete mode 100644 tests/xtro-sharpie/macOS-MLCompute.todo delete mode 100644 tests/xtro-sharpie/tvOS-MLCompute.todo diff --git a/src/MLCompute/MLHelpers.cs b/src/MLCompute/MLHelpers.cs index 5b2c469c2db6..a5889f4d2ee8 100644 --- a/src/MLCompute/MLHelpers.cs +++ b/src/MLCompute/MLHelpers.cs @@ -235,4 +235,24 @@ public static string GetDebugDescription (this MLCComparisonOperation self) return CFString.FromHandle (MLCComparisonOperationDebugDescription (self)); } } + +#if NET + [SupportedOSPlatform ("ios15.0")] + [SupportedOSPlatform ("tvos15.0")] + [SupportedOSPlatform ("macos12.0")] + [SupportedOSPlatform ("maccatalyst15.0")] +#else + [NoWatch] + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] +#endif + public static class MLCGradientClippingTypeExtensions { + + [DllImport (Constants.MLComputeLibrary)] + static extern /* NSString */ IntPtr MLCGradientClippingTypeDebugDescription (MLCGradientClippingType gradientClippingType); + + public static string GetDebugDescription (this MLCGradientClippingType self) + { + return CFString.FromHandle (MLCGradientClippingTypeDebugDescription (self)); + } + } } diff --git a/src/mlcompute.cs b/src/mlcompute.cs index b36bb939e9ba..f51e03a7e651 100644 --- a/src/mlcompute.cs +++ b/src/mlcompute.cs @@ -92,9 +92,15 @@ enum MLCConvolutionType { enum MLCDataType { Invalid = 0, Float32 = 1, + [iOS (15,0), TV (15,0), Mac (12,0), MacCatalyst (15,0)] + Float16 = 3, Boolean = 4, Int64 = 5, - Int32 = 7, + Inot32 = 7, + [iOS (15,0), TV (15,0), Mac (12,0), MacCatalyst (15,0)] + Int8 = 8, + [iOS (15,0), TV (15,0), Mac (12,0), MacCatalyst (15,0)] + UInt8 = 9, // Count, // must be last, not available in swift } @@ -104,6 +110,8 @@ enum MLCDeviceType /* int32_t */ { Cpu = 0, Gpu = 1, Any = 2, + [iOS (15,0), TV (15,0), Mac (12,0), MacCatalyst (15,0)] + Ane = 3, // Apple neural engine // Count, // must be last, not available in swift } @@ -116,6 +124,8 @@ enum MLCExecutionOptions : ulong { Synchronous = 0x2, Profiling = 0x4, ForwardForInference = 0x8, + [iOS (15,0), TV (15,0), Mac (12,0), MacCatalyst (15,0)] + PerLayerProfiling = 0x10, } [iOS (14,0)][TV (14,0)][Mac (11,0)] @@ -229,6 +239,14 @@ enum MLCSoftmaxOperation { LogSoftmax = 1, } + [iOS (15,0), TV (15,0), Mac (12,0), NoWatch, MacCatalyst (15,0)] + public enum MLCGradientClippingType { + Value = 0, + Norm = 1, + GlobalNorm = 2, + } + + [iOS (14,0)][TV (14,0)][Mac (11,0)] [NoWatch] [BaseType (typeof (NSObject))] @@ -286,6 +304,10 @@ interface MLCLayer { [Static] [Export ("supportsDataType:onDevice:")] bool SupportsDataType (MLCDataType dataType, MLCDeviceType device); + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("deviceType")] + MLCDeviceType DeviceType { get; } } [iOS (14,0)][TV (14,0)][Mac (11,0)] @@ -442,6 +464,18 @@ interface MLCOptimizer : NSCopying { [Export ("regularizationType")] MLCRegularizationType RegularizationType { get; } + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("gradientClippingType")] + MLCGradientClippingType GradientClippingType { get; } + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("maximumClippingNorm")] + float MaximumClippingNorm { get; } + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("customGlobalNorm")] + float CustomGlobalNorm { get; } } [iOS (14,0)][TV (14,0)][Mac (11,0)] @@ -478,6 +512,23 @@ interface MLCOptimizerDescriptor : NSCopying { [Static] [Export ("descriptorWithLearningRate:gradientRescale:appliesGradientClipping:gradientClipMax:gradientClipMin:regularizationType:regularizationScale:")] MLCOptimizerDescriptor Create (float learningRate, float gradientRescale, bool appliesGradientClipping, float gradientClipMax, float gradientClipMin, MLCRegularizationType regularizationType, float regularizationScale); + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Static] + [Export ("descriptorWithLearningRate:gradientRescale:appliesGradientClipping:gradientClippingType:gradientClipMax:gradientClipMin:maximumClippingNorm:customGlobalNorm:regularizationType:regularizationScale:")] + MLCOptimizerDescriptor Create (float learningRate, float gradientRescale, bool appliesGradientClipping, MLCGradientClippingType gradientClippingType, float gradientClipMax, float gradientClipMin, float maximumClippingNorm, float customGlobalNorm, MLCRegularizationType regularizationType, float regularizationScale); + + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Export ("gradientClippingType")] + MLCGradientClippingType GradientClippingType { get; } + + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Export ("maximumClippingNorm")] + float MaximumClippingNorm { get; } + + [TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15,0)] + [Export ("customGlobalNorm")] + float CustomGlobalNorm { get; } } [iOS (14,0)][TV (14,0)][Mac (11,0)] @@ -498,6 +549,10 @@ interface MLCAdamOptimizer : NSCopying { [Export ("timeStep")] nuint TimeStep { get; } + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("usesAMSGrad")] + bool UsesAmsGrad { get; } + [Static] [Export ("optimizerWithDescriptor:")] MLCAdamOptimizer Create (MLCOptimizerDescriptor optimizerDescriptor); @@ -505,6 +560,11 @@ interface MLCAdamOptimizer : NSCopying { [Static] [Export ("optimizerWithDescriptor:beta1:beta2:epsilon:timeStep:")] MLCAdamOptimizer Create (MLCOptimizerDescriptor optimizerDescriptor, float beta1, float beta2, float epsilon, nuint timeStep); + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Static] + [Export ("optimizerWithDescriptor:beta1:beta2:epsilon:usesAMSGrad:timeStep:")] + MLCAdamOptimizer Create (MLCOptimizerDescriptor optimizerDescriptor, float beta1, float beta2, float epsilon, bool usesAmsGrad, nuint timeStep); } [iOS (14,0)][TV (14,0)][Mac (11,0)] @@ -538,11 +598,21 @@ interface MLCDevice : NSCopying { [return: NullAllowed] MLCDevice GetDevice (IMTLDevice[] gpus); + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Static] + [Export ("aneDevice")] + [return: NullAllowed] + MLCDevice GetAneDevice (); + [iOS (14,2)][TV (14,2)] [Static] [Export ("deviceWithType:selectsMultipleComputeDevices:")] [return: NullAllowed] MLCDevice GetDevice (MLCDeviceType type, bool selectsMultipleComputeDevices); + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("actualDeviceType")] + MLCDeviceType ActualDeviceType { get; } } [iOS (14,0)][TV (14,0)][Mac (11,0)] @@ -673,6 +743,31 @@ MLCTensorData[] OptimizerData { [Export ("bindOptimizerData:deviceData:")] bool BindOptimizer (MLCTensorData[] data, [NullAllowed] MLCTensorOptimizerDeviceData[] deviceData); + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("tensorByQuantizingToType:scale:bias:")] + [return: NullAllowed] + MLCTensor CreateByQuantizing (MLCDataType type, float scale, nint bias); + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("tensorByDequantizingToType:scale:bias:")] + [return: NullAllowed] + MLCTensor CreateByDequantizing (MLCDataType type, MLCTensor scale, MLCTensor bias); + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("tensorByQuantizingToType:scale:bias:axis:")] + [return: NullAllowed] + MLCTensor CreateByQuantizing (MLCDataType type, MLCTensor scale, MLCTensor bias, nint axis); + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("tensorByDequantizingToType:scale:bias:axis:")] + [return: NullAllowed] + MLCTensor CreateByDequantizing (MLCDataType type, MLCTensor scale, MLCTensor bias, nint axis); + + [Static] + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [Export ("tensorWithShape:randomInitializerType:dataType:")] + MLCTensor Create ([BindAs (typeof (nint[]))] NSNumber[] shape, MLCRandomInitializerType randomInitializerType, MLCDataType dataType); } [iOS (14,0)][TV (14,0)][Mac (11,0)] @@ -2282,4 +2377,49 @@ interface MLCSelectionLayer { [Export ("layer")] MLCSelectionLayer Create (); } + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [BaseType (typeof (NSObject))] + [DisableDefaultCtor] + interface MLCPlatform { + + [Static] + [Export ("setRNGSeedTo:")] + void SetRngSeed ([BindAs (typeof (nuint))] NSNumber seed); + + [return: BindAs (typeof (nuint)), NullAllowed] + [Static] + [Export ("getRNGseed")] + NSNumber GetRngSeed (); + } + + [TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)] + [BaseType (typeof (MLCOptimizer))] + [DisableDefaultCtor] + interface MLCAdamWOptimizer : NSCopying + { + [Export ("beta1")] + float Beta1 { get; } + + [Export ("beta2")] + float Beta2 { get; } + + [Export ("epsilon")] + float Epsilon { get; } + + [Export ("usesAMSGrad")] + bool UsesAmsGrad { get; } + + [Export ("timeStep")] + nuint TimeStep { get; } + + [Static] + [Export ("optimizerWithDescriptor:")] + MLCAdamWOptimizer GetOptimizer (MLCOptimizerDescriptor optimizerDescriptor); + + [Static] + [Export ("optimizerWithDescriptor:beta1:beta2:epsilon:usesAMSGrad:timeStep:")] + MLCAdamWOptimizer GetOptimizer (MLCOptimizerDescriptor optimizerDescriptor, float beta1, float beta2, float epsilon, bool usesAmsGrad, nuint timeStep); + } + } diff --git a/tests/xtro-sharpie/MacCatalyst-MLCompute.todo b/tests/xtro-sharpie/MacCatalyst-MLCompute.todo deleted file mode 100644 index 05f7c59e8fc7..000000000000 --- a/tests/xtro-sharpie/MacCatalyst-MLCompute.todo +++ /dev/null @@ -1,37 +0,0 @@ -!missing-enum! MLCGradientClippingType not bound -!missing-enum-value! MLCDataType native value MLCDataTypeCount = 10 not bound -!missing-enum-value! MLCDataType native value MLCDataTypeFloat16 = 3 not bound -!missing-enum-value! MLCDataType native value MLCDataTypeInt8 = 8 not bound -!missing-enum-value! MLCDataType native value MLCDataTypeUInt8 = 9 not bound -!missing-enum-value! MLCDeviceType native value MLCDeviceTypeANE = 3 not bound -!missing-enum-value! MLCDeviceType native value MLCDeviceTypeCount = 4 not bound -!missing-enum-value! MLCExecutionOptions native value MLCExecutionOptionsPerLayerProfiling = 16 not bound -!missing-pinvoke! MLCGradientClippingTypeDebugDescription is not bound -!missing-selector! +MLCAdamOptimizer::optimizerWithDescriptor:beta1:beta2:epsilon:usesAMSGrad:timeStep: not bound -!missing-selector! +MLCAdamWOptimizer::optimizerWithDescriptor: not bound -!missing-selector! +MLCAdamWOptimizer::optimizerWithDescriptor:beta1:beta2:epsilon:usesAMSGrad:timeStep: not bound -!missing-selector! +MLCDevice::aneDevice not bound -!missing-selector! +MLCOptimizerDescriptor::descriptorWithLearningRate:gradientRescale:appliesGradientClipping:gradientClippingType:gradientClipMax:gradientClipMin:maximumClippingNorm:customGlobalNorm:regularizationType:regularizationScale: not bound -!missing-selector! +MLCPlatform::getRNGseed not bound -!missing-selector! +MLCPlatform::setRNGSeedTo: not bound -!missing-selector! +MLCTensor::tensorWithShape:randomInitializerType:dataType: not bound -!missing-selector! MLCAdamOptimizer::usesAMSGrad not bound -!missing-selector! MLCAdamWOptimizer::beta1 not bound -!missing-selector! MLCAdamWOptimizer::beta2 not bound -!missing-selector! MLCAdamWOptimizer::epsilon not bound -!missing-selector! MLCAdamWOptimizer::timeStep not bound -!missing-selector! MLCAdamWOptimizer::usesAMSGrad not bound -!missing-selector! MLCDevice::actualDeviceType not bound -!missing-selector! MLCLayer::deviceType not bound -!missing-selector! MLCOptimizer::customGlobalNorm not bound -!missing-selector! MLCOptimizer::gradientClippingType not bound -!missing-selector! MLCOptimizer::maximumClippingNorm not bound -!missing-selector! MLCOptimizerDescriptor::customGlobalNorm not bound -!missing-selector! MLCOptimizerDescriptor::gradientClippingType not bound -!missing-selector! MLCOptimizerDescriptor::maximumClippingNorm not bound -!missing-selector! MLCTensor::tensorByDequantizingToType:scale:bias: not bound -!missing-selector! MLCTensor::tensorByDequantizingToType:scale:bias:axis: not bound -!missing-selector! MLCTensor::tensorByQuantizingToType:scale:bias: not bound -!missing-selector! MLCTensor::tensorByQuantizingToType:scale:bias:axis: not bound -!missing-type! MLCAdamWOptimizer not bound -!missing-type! MLCPlatform not bound diff --git a/tests/xtro-sharpie/common-MLCompute.ignore b/tests/xtro-sharpie/common-MLCompute.ignore index 7df4637f9fca..e941fd34d450 100644 --- a/tests/xtro-sharpie/common-MLCompute.ignore +++ b/tests/xtro-sharpie/common-MLCompute.ignore @@ -2,9 +2,9 @@ !missing-enum-value! MLCActivationType native value MLCActivationTypeCount = 21 not bound !missing-enum-value! MLCArithmeticOperation native value MLCArithmeticOperationCount = 30 not bound !missing-enum-value! MLCComparisonOperation native value MLCComparisonOperationCount = 12 not bound -## missing-enum-value! MLCDataType native value MLCDataTypeCount = 8 not bound -## missing-enum-value! MLCDeviceType native value MLCDeviceTypeCount = 3 not bound !missing-enum-value! MLCLossType native value MLCLossTypeCount = 9 not bound !missing-enum-value! MLCPoolingType native value MLCPoolingTypeCount = 4 not bound !missing-enum-value! MLCRandomInitializerType native value MLCRandomInitializerTypeCount = 4 not bound !missing-enum-value! MLCReductionType native value MLCReductionTypeCount = 10 not bound +!missing-enum-value! MLCDeviceType native value MLCDeviceTypeCount = 4 not bound +!missing-enum-value! MLCDataType native value MLCDataTypeCount = 10 not bound diff --git a/tests/xtro-sharpie/iOS-MLCompute.todo b/tests/xtro-sharpie/iOS-MLCompute.todo deleted file mode 100644 index 05f7c59e8fc7..000000000000 --- a/tests/xtro-sharpie/iOS-MLCompute.todo +++ /dev/null @@ -1,37 +0,0 @@ -!missing-enum! MLCGradientClippingType not bound -!missing-enum-value! MLCDataType native value MLCDataTypeCount = 10 not bound -!missing-enum-value! MLCDataType native value MLCDataTypeFloat16 = 3 not bound -!missing-enum-value! MLCDataType native value MLCDataTypeInt8 = 8 not bound -!missing-enum-value! MLCDataType native value MLCDataTypeUInt8 = 9 not bound -!missing-enum-value! MLCDeviceType native value MLCDeviceTypeANE = 3 not bound -!missing-enum-value! MLCDeviceType native value MLCDeviceTypeCount = 4 not bound -!missing-enum-value! MLCExecutionOptions native value MLCExecutionOptionsPerLayerProfiling = 16 not bound -!missing-pinvoke! MLCGradientClippingTypeDebugDescription is not bound -!missing-selector! +MLCAdamOptimizer::optimizerWithDescriptor:beta1:beta2:epsilon:usesAMSGrad:timeStep: not bound -!missing-selector! +MLCAdamWOptimizer::optimizerWithDescriptor: not bound -!missing-selector! +MLCAdamWOptimizer::optimizerWithDescriptor:beta1:beta2:epsilon:usesAMSGrad:timeStep: not bound -!missing-selector! +MLCDevice::aneDevice not bound -!missing-selector! +MLCOptimizerDescriptor::descriptorWithLearningRate:gradientRescale:appliesGradientClipping:gradientClippingType:gradientClipMax:gradientClipMin:maximumClippingNorm:customGlobalNorm:regularizationType:regularizationScale: not bound -!missing-selector! +MLCPlatform::getRNGseed not bound -!missing-selector! +MLCPlatform::setRNGSeedTo: not bound -!missing-selector! +MLCTensor::tensorWithShape:randomInitializerType:dataType: not bound -!missing-selector! MLCAdamOptimizer::usesAMSGrad not bound -!missing-selector! MLCAdamWOptimizer::beta1 not bound -!missing-selector! MLCAdamWOptimizer::beta2 not bound -!missing-selector! MLCAdamWOptimizer::epsilon not bound -!missing-selector! MLCAdamWOptimizer::timeStep not bound -!missing-selector! MLCAdamWOptimizer::usesAMSGrad not bound -!missing-selector! MLCDevice::actualDeviceType not bound -!missing-selector! MLCLayer::deviceType not bound -!missing-selector! MLCOptimizer::customGlobalNorm not bound -!missing-selector! MLCOptimizer::gradientClippingType not bound -!missing-selector! MLCOptimizer::maximumClippingNorm not bound -!missing-selector! MLCOptimizerDescriptor::customGlobalNorm not bound -!missing-selector! MLCOptimizerDescriptor::gradientClippingType not bound -!missing-selector! MLCOptimizerDescriptor::maximumClippingNorm not bound -!missing-selector! MLCTensor::tensorByDequantizingToType:scale:bias: not bound -!missing-selector! MLCTensor::tensorByDequantizingToType:scale:bias:axis: not bound -!missing-selector! MLCTensor::tensorByQuantizingToType:scale:bias: not bound -!missing-selector! MLCTensor::tensorByQuantizingToType:scale:bias:axis: not bound -!missing-type! MLCAdamWOptimizer not bound -!missing-type! MLCPlatform not bound diff --git a/tests/xtro-sharpie/macOS-MLCompute.todo b/tests/xtro-sharpie/macOS-MLCompute.todo deleted file mode 100644 index 05f7c59e8fc7..000000000000 --- a/tests/xtro-sharpie/macOS-MLCompute.todo +++ /dev/null @@ -1,37 +0,0 @@ -!missing-enum! MLCGradientClippingType not bound -!missing-enum-value! MLCDataType native value MLCDataTypeCount = 10 not bound -!missing-enum-value! MLCDataType native value MLCDataTypeFloat16 = 3 not bound -!missing-enum-value! MLCDataType native value MLCDataTypeInt8 = 8 not bound -!missing-enum-value! MLCDataType native value MLCDataTypeUInt8 = 9 not bound -!missing-enum-value! MLCDeviceType native value MLCDeviceTypeANE = 3 not bound -!missing-enum-value! MLCDeviceType native value MLCDeviceTypeCount = 4 not bound -!missing-enum-value! MLCExecutionOptions native value MLCExecutionOptionsPerLayerProfiling = 16 not bound -!missing-pinvoke! MLCGradientClippingTypeDebugDescription is not bound -!missing-selector! +MLCAdamOptimizer::optimizerWithDescriptor:beta1:beta2:epsilon:usesAMSGrad:timeStep: not bound -!missing-selector! +MLCAdamWOptimizer::optimizerWithDescriptor: not bound -!missing-selector! +MLCAdamWOptimizer::optimizerWithDescriptor:beta1:beta2:epsilon:usesAMSGrad:timeStep: not bound -!missing-selector! +MLCDevice::aneDevice not bound -!missing-selector! +MLCOptimizerDescriptor::descriptorWithLearningRate:gradientRescale:appliesGradientClipping:gradientClippingType:gradientClipMax:gradientClipMin:maximumClippingNorm:customGlobalNorm:regularizationType:regularizationScale: not bound -!missing-selector! +MLCPlatform::getRNGseed not bound -!missing-selector! +MLCPlatform::setRNGSeedTo: not bound -!missing-selector! +MLCTensor::tensorWithShape:randomInitializerType:dataType: not bound -!missing-selector! MLCAdamOptimizer::usesAMSGrad not bound -!missing-selector! MLCAdamWOptimizer::beta1 not bound -!missing-selector! MLCAdamWOptimizer::beta2 not bound -!missing-selector! MLCAdamWOptimizer::epsilon not bound -!missing-selector! MLCAdamWOptimizer::timeStep not bound -!missing-selector! MLCAdamWOptimizer::usesAMSGrad not bound -!missing-selector! MLCDevice::actualDeviceType not bound -!missing-selector! MLCLayer::deviceType not bound -!missing-selector! MLCOptimizer::customGlobalNorm not bound -!missing-selector! MLCOptimizer::gradientClippingType not bound -!missing-selector! MLCOptimizer::maximumClippingNorm not bound -!missing-selector! MLCOptimizerDescriptor::customGlobalNorm not bound -!missing-selector! MLCOptimizerDescriptor::gradientClippingType not bound -!missing-selector! MLCOptimizerDescriptor::maximumClippingNorm not bound -!missing-selector! MLCTensor::tensorByDequantizingToType:scale:bias: not bound -!missing-selector! MLCTensor::tensorByDequantizingToType:scale:bias:axis: not bound -!missing-selector! MLCTensor::tensorByQuantizingToType:scale:bias: not bound -!missing-selector! MLCTensor::tensorByQuantizingToType:scale:bias:axis: not bound -!missing-type! MLCAdamWOptimizer not bound -!missing-type! MLCPlatform not bound diff --git a/tests/xtro-sharpie/tvOS-MLCompute.todo b/tests/xtro-sharpie/tvOS-MLCompute.todo deleted file mode 100644 index 05f7c59e8fc7..000000000000 --- a/tests/xtro-sharpie/tvOS-MLCompute.todo +++ /dev/null @@ -1,37 +0,0 @@ -!missing-enum! MLCGradientClippingType not bound -!missing-enum-value! MLCDataType native value MLCDataTypeCount = 10 not bound -!missing-enum-value! MLCDataType native value MLCDataTypeFloat16 = 3 not bound -!missing-enum-value! MLCDataType native value MLCDataTypeInt8 = 8 not bound -!missing-enum-value! MLCDataType native value MLCDataTypeUInt8 = 9 not bound -!missing-enum-value! MLCDeviceType native value MLCDeviceTypeANE = 3 not bound -!missing-enum-value! MLCDeviceType native value MLCDeviceTypeCount = 4 not bound -!missing-enum-value! MLCExecutionOptions native value MLCExecutionOptionsPerLayerProfiling = 16 not bound -!missing-pinvoke! MLCGradientClippingTypeDebugDescription is not bound -!missing-selector! +MLCAdamOptimizer::optimizerWithDescriptor:beta1:beta2:epsilon:usesAMSGrad:timeStep: not bound -!missing-selector! +MLCAdamWOptimizer::optimizerWithDescriptor: not bound -!missing-selector! +MLCAdamWOptimizer::optimizerWithDescriptor:beta1:beta2:epsilon:usesAMSGrad:timeStep: not bound -!missing-selector! +MLCDevice::aneDevice not bound -!missing-selector! +MLCOptimizerDescriptor::descriptorWithLearningRate:gradientRescale:appliesGradientClipping:gradientClippingType:gradientClipMax:gradientClipMin:maximumClippingNorm:customGlobalNorm:regularizationType:regularizationScale: not bound -!missing-selector! +MLCPlatform::getRNGseed not bound -!missing-selector! +MLCPlatform::setRNGSeedTo: not bound -!missing-selector! +MLCTensor::tensorWithShape:randomInitializerType:dataType: not bound -!missing-selector! MLCAdamOptimizer::usesAMSGrad not bound -!missing-selector! MLCAdamWOptimizer::beta1 not bound -!missing-selector! MLCAdamWOptimizer::beta2 not bound -!missing-selector! MLCAdamWOptimizer::epsilon not bound -!missing-selector! MLCAdamWOptimizer::timeStep not bound -!missing-selector! MLCAdamWOptimizer::usesAMSGrad not bound -!missing-selector! MLCDevice::actualDeviceType not bound -!missing-selector! MLCLayer::deviceType not bound -!missing-selector! MLCOptimizer::customGlobalNorm not bound -!missing-selector! MLCOptimizer::gradientClippingType not bound -!missing-selector! MLCOptimizer::maximumClippingNorm not bound -!missing-selector! MLCOptimizerDescriptor::customGlobalNorm not bound -!missing-selector! MLCOptimizerDescriptor::gradientClippingType not bound -!missing-selector! MLCOptimizerDescriptor::maximumClippingNorm not bound -!missing-selector! MLCTensor::tensorByDequantizingToType:scale:bias: not bound -!missing-selector! MLCTensor::tensorByDequantizingToType:scale:bias:axis: not bound -!missing-selector! MLCTensor::tensorByQuantizingToType:scale:bias: not bound -!missing-selector! MLCTensor::tensorByQuantizingToType:scale:bias:axis: not bound -!missing-type! MLCAdamWOptimizer not bound -!missing-type! MLCPlatform not bound