CoreML macOS 12.3 to 13.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 -[MLMultiArray getBytesWithHandler:]
Added -[MLMultiArray getMutableBytesWithHandler:]
Modified MLMultiArray.dataPointer
AvailabilityDeprecation Message
FromAvailablenone
ToDeprecatedUse getBytesWithHandler or getMutableBytesWithHandler instead. For Swift, use withUnsafeBytes or withUnsafeMutableBytes.

Modified MLMultiArray.pixelBuffer
Declaration
From@property (nonatomic, readonly, nullable) CVPixelBufferRef pixelBuffer
To@property (nonatomic, readonly, nullable) CVPixelBufferRef pixelBuffer

MLPredictionOptions.h
Modified MLPredictionOptions.outputBackings
Declaration
From@property (nonatomic, readwrite, copy, nonnull) NSDictionary<NSString *,id> *outputBackings
To@property (nonatomic, readwrite, copy, nonnull) NSDictionary<NSString *,id> *outputBackings