public final class MLModelError
extends java.lang.Object
The framework communicates the error code to the application through NSError's code property. The application could use the error code to present an helpful error message to the user or to diagnose the problem.
See also NSError's localizedDescription property, which often contains more detailed information.
| Modifier and Type | Field and Description |
|---|---|
static long |
CustomLayer
Core ML throws/returns this error when the framework encounters an error in the custom
layer subsystem.
|
static long |
CustomModel
Core ML throws/returns this error when the framework encounters an error in the custom
model subsystem.
|
static long |
FeatureType
Core ML throws/returns this error when the model client, typically an application, sends
the wrong feature type to a model's input.
|
static long |
Generic
Core ML throws/returns this error when the framework encounters an generic error.
|
static long |
IO
Core ML throws/returns this error when the framework encounters some I/O problem, most
likely a file I/O problem.
|
static long |
ModelCollection
Core ML throws/returns this error when the framework encounters an error in the model
collection deployment subsystem.
|
static long |
ModelDecryption
Core ML throws/returns this error when the framework encounters an error in the model
decryption subsystem.
|
static long |
ModelDecryptionKeyFetch
Core ML throws/returns this error when the framework fails to download the model decryption
key.
|
static long |
Parameters
Core ML throws/returns this error when the model client, typically an application, queries
an unsupported model parameter (see MLParameterKey).
|
static long |
Update
Core ML throws/returns this error when the framework encounters an error while performing
the on-device model update.
|
public static final long Generic
The typical cause for this error is an unexpected framework level problem.
public static final long FeatureType
The typical cause for this error is a programming mistake.
For example, a prediction method will throw/return the error when the caller passes an image to a model's input that expects an `MLMultiArray`.
public static final long IO
For example, a model loading will throw/return the error when the caller requests a non-existing model URL.
public static final long CustomLayer
The typical cause for this error is a programming mistake.
For example, a prediction method will throw/return the error when it fails to find the custom layer implementation.
public static final long CustomModel
The typical cause for this error is a programming mistake.
For example, a prediction method will throw/return the error when it fails to find the custom model implementation.
public static final long Update
For example, the framework will throw/return the error when it fails to save the updated model.
public static final long Parameters
The typical cause for this error is a programming mistake.
public static final long ModelDecryptionKeyFetch
The typical cause for this error is a network connection issue to the key server.
public static final long ModelDecryption
The typical cause for this error is in the key server configuration and the client application cannot do much about it.
For example, a model loading method will throw/return the error when it uses incorrect model decryption key.
public static final long ModelCollection
The typical cause for this error is the network connectability issue to the model deployment server.