CoreML iOS 12.4 to 13.0 API Differences
MLDictionaryConstraint.h
Modified
MLDictionaryConstraint
Protocols
From
none
To
NSSecureCoding
MLFeatureDescription.h
Modified
MLFeatureDescription
Protocols
From
NSCopying
To
NSCopying, NSSecureCoding
MLFeatureValue+MLImageConversion.h
Added
MLFeatureValueImageOption
Added
MLFeatureValueImageOptionCropRect
Added
MLFeatureValueImageOptionCropAndScale
Added
+[MLFeatureValue featureValueWithImageAtURL:pixelsWide:pixelsHigh:pixelFormatType:options:error:]
Added
+[MLFeatureValue featureValueWithImageAtURL:constraint:options:error:]
Added
+[MLFeatureValue featureValueWithCGImage:pixelsWide:pixelsHigh:pixelFormatType:options:error:]
Added
+[MLFeatureValue featureValueWithCGImage:constraint:options:error:]
Added
+[MLFeatureValue featureValueWithImageAtURL:orientation:pixelsWide:pixelsHigh:pixelFormatType:options:error:]
Added
+[MLFeatureValue featureValueWithImageAtURL:orientation:constraint:options:error:]
Added
+[MLFeatureValue featureValueWithCGImage:orientation:pixelsWide:pixelsHigh:pixelFormatType:options:error:]
Added
+[MLFeatureValue featureValueWithCGImage:orientation:constraint:options:error:]
MLImageConstraint.h
Modified
MLImageConstraint
Protocols
From
none
To
NSSecureCoding
MLImageSize.h
Modified
MLImageSize
Protocols
From
none
To
NSSecureCoding
MLImageSizeConstraint.h
Modified
MLImageSizeConstraint
Protocols
From
none
To
NSSecureCoding
MLKey.h
Added
MLKey
Added
MLKey.name
Added
MLKey.scope
MLMetricKey.h
Added
MLMetricKey
Added
MLMetricKey.lossValue
Added
MLMetricKey.epochIndex
Added
MLMetricKey.miniBatchIndex
MLModel.h
Added
-[MLModel predictionsFromBatch:error:]
Added
-[MLModel parameterValueForKey:error:]
MLModelConfiguration.h
Added
MLModelConfiguration.allowLowPrecisionAccumulationOnGPU
Added
MLModelConfiguration.preferredMetalDevice
Added
MLModelConfiguration.parameters
Modified
MLModelConfiguration
Protocols
From
NSCopying
To
NSCopying, NSSecureCoding
MLModelDescription.h
Added
MLModelDescription.isUpdatable
Added
MLModelDescription.trainingInputDescriptionsByName
Added
MLModelDescription.parameterDescriptionsByKey
Modified
MLModelDescription
Protocols
From
none
To
NSSecureCoding
MLModelError.h
Added
MLModelErrorUpdate
Added
MLModelErrorParameters
MLMultiArrayConstraint.h
Modified
MLMultiArrayConstraint
Protocols
From
none
To
NSSecureCoding
MLMultiArrayShapeConstraint.h
Modified
MLMultiArrayShapeConstraint
Protocols
From
none
To
NSSecureCoding
MLNumericConstraint.h
Added
MLNumericConstraint
Added
MLNumericConstraint.minNumber
Added
MLNumericConstraint.maxNumber
Added
MLNumericConstraint.enumeratedNumbers
MLParameterDescription.h
Added
MLParameterDescription
Added
MLParameterDescription.key
Added
MLParameterDescription.defaultValue
Added
MLParameterDescription.numericConstraint
MLParameterKey.h
Added
MLParameterKey
Added
MLParameterKey.learningRate
Added
MLParameterKey.momentum
Added
MLParameterKey.miniBatchSize
Added
MLParameterKey.beta1
Added
MLParameterKey.beta2
Added
MLParameterKey.eps
Added
MLParameterKey.epochs
Added
MLParameterKey.shuffle
Added
MLParameterKey.seed
Added
MLParameterKey.numberOfNeighbors
Added
MLParameterKey.linkedModelFileName
Added
MLParameterKey.linkedModelSearchPath
Added
MLParameterKey.weights
Added
MLParameterKey.biases
Added
-[MLParameterKey scopedTo:]
MLSequenceConstraint.h
Modified
MLSequenceConstraint
Protocols
From
none
To
NSSecureCoding
MLTask.h
Added
MLTaskState
Added
MLTaskStateSuspended
Added
MLTaskStateRunning
Added
MLTaskStateCancelling
Added
MLTaskStateCompleted
Added
MLTaskStateFailed
Added
MLTask
Added
MLTask.taskIdentifier
Added
MLTask.state
Added
MLTask.error
Added
-[MLTask resume]
Added
-[MLTask cancel]
MLUpdateContext.h
Added
MLUpdateContext
Added
MLUpdateContext.task
Added
MLUpdateContext.model
Added
MLUpdateContext.event
Added
MLUpdateContext.metrics
Added
MLUpdateContext.parameters
MLUpdateProgressEvent.h
Added
MLUpdateProgressEvent
Added
MLUpdateProgressEventTrainingBegin
Added
MLUpdateProgressEventEpochEnd
Added
MLUpdateProgressEventMiniBatchEnd
MLUpdateProgressHandlers.h
Added
MLUpdateProgressHandlers
Added
-[MLUpdateProgressHandlers initForEvents:progressHandler:completionHandler:]
MLUpdateTask.h
Added
MLUpdateTask
Added
+[MLUpdateTask updateTaskForModelAtURL:trainingData:configuration:completionHandler:error:]
Added
+[MLUpdateTask updateTaskForModelAtURL:trainingData:configuration:progressHandlers:error:]
Added
-[MLUpdateTask resumeWithParameters:]
MLWritable.h
Added
MLWritable
Added
-[MLWritable writeToURL:error:]