Structure

MLModelError

Information about a Core ML model error.

Declaration

struct MLModelError

Topics

Error Details

var errorCode: Int

The error code for this error.

var errorUserInfo: [String : Any]

The user info dictionary for this error.

var localizedDescription: String

The localized string that descirbes this error.

Error Domain

static var errorDomain: String

The current model error domain.

let MLModelErrorDomain: String

The domain for Core ML errors.

Error Codes

static var io: MLModelError.Code

An error realated to the file system’s input or ouput.

static var featureType: MLModelError.Code

An error from a feature type mismatch or other feature type-based issue.

static var customLayer: MLModelError.Code

An error related to a custom layer in your model.

static var customModel: MLModelError.Code

An error related to a custom model.

static var update: MLModelError.Code

An error related to updating a model.

static var parameters: MLModelError.Code

An error related to missing or invalid model parameters.

static var generic: MLModelError.Code

A generic error the framework uses as a fallback for all other error categories.

enum MLModelError.Code

The categories of model-specific errors.

Comparison Operator

static func != (MLModelError, MLModelError) -> Bool

Returns a Boolean value indicating whether two values are not equal.