Class CoreML


  • public final class CoreML
    extends java.lang.Object
    • Method Detail

      • MLModelDescriptionKey

        public static java.lang.String MLModelDescriptionKey()
        A short description of what the model does and/or its purpose API-Since: 11.0
      • MLModelVersionStringKey

        public static java.lang.String MLModelVersionStringKey()
        A version number encoded as a string API-Since: 11.0
      • MLModelAuthorKey

        public static java.lang.String MLModelAuthorKey()
        The author of this model API-Since: 11.0
      • MLModelLicenseKey

        public static java.lang.String MLModelLicenseKey()
        License information for the model API-Since: 11.0
      • MLModelCreatorDefinedKey

        public static java.lang.String MLModelCreatorDefinedKey()
        Any additional pertinent information specified by the model creator API-Since: 11.0
      • MLModelErrorDomain

        @NotNull
        public static @NotNull java.lang.String MLModelErrorDomain()
        API-Since: 11.0
      • MLFeatureValueImageOptionCropRect

        @NotNull
        public static @NotNull java.lang.String MLFeatureValueImageOptionCropRect()
        Key for CGRect describing a crop region of interest of image source in normalized coordinates API-Since: 13.0
      • MLFeatureValueImageOptionCropAndScale

        @NotNull
        public static @NotNull java.lang.String MLFeatureValueImageOptionCropAndScale()
        Key for VNImageCropAndScaleOption describing how to crop and scale the image (or region of interest) to the desired size API-Since: 13.0
      • MLModelCollectionDidChangeNotification

        @Deprecated
        @NotNull
        public static @NotNull java.lang.String MLModelCollectionDidChangeNotification()
        Deprecated.
        Notification posted when the model collection has changed. API-Since: 14.0 Deprecated-Since: 100000.0 Deprecated-Message: Use Background Assets or NSURLSession instead.
      • MLAllComputeDevices

        @NotNull
        public static @NotNull NSArray<?> MLAllComputeDevices()
        Returns an array containing all compute devices. The returned array contains all compute devices that are accessible. If a compute device becomes inaccessible for some reason (for e.g. if an external GPU is unplugged) then the subsequent call to`MLAllComputeDevices` will return an array without the compute device. API-Since: 17.0