An interface that defines the behavior of a custom model.
- iOS 12.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 12.0+
- watchOS 5.0+
- Core ML
To integrate your custom model with Core ML, adopt the
MLCustom protocol in the implementation of your custom model. If you use a Swift class for your custom implementation, make it accessible to Core ML by using the
This defines the Objective-C name for the class, which Core ML needs to access your custom class’s implementation.