CoreML iOS 15.5 to 16.0 API Differences

MLModel.h
Added +[MLModel loadModelAsset:configuration:completionHandler:]
MLModel+MLModelCompilation.h
Added +[MLModel compileModelAtURL:completionHandler:]
Modified +[MLModel compileModelAtURL:error:]
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse the asynchronous interface compileModelAtURL:completionHandler:error: instead.

MLModelAsset.h
Added MLModelAsset
Added +[MLModelAsset modelAssetWithSpecificationData:error:]
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
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse getBytesWithHandler or getMutableBytesWithHandler instead. For Swift, use withUnsafeBytes or withUnsafeMutableBytes.

MLPredictionOptions.h
Added MLPredictionOptions.outputBackings