CoreML watchOS 8.5 to 9.0 API Differences
MLModel.h
Added
+[MLModel loadModelAsset:configuration:completionHandler:]
MLModelAsset.h
Added
MLModelAsset
MLModelConfiguration.h
Added
MLComputeUnitsCPUAndNeuralEngine
Added
MLModelConfiguration.modelDisplayName
MLMultiArray.h
Added
MLMultiArrayDataTypeFloat16
Added
MLMultiArray.pixelBuffer
Added
-[MLMultiArray initWithPixelBuffer:shape:]
Added
-[MLMultiArray getBytesWithHandler:]
Added
-[MLMultiArray getMutableBytesWithHandler:]
Modified
MLMultiArray.dataPointer
Availability
Deprecation Message
From
Available
none
To
Deprecated
Use getBytesWithHandler or getMutableBytesWithHandler instead. For Swift, use withUnsafeBytes or withUnsafeMutableBytes.
MLPredictionOptions.h
Added
MLPredictionOptions.outputBackings