MLModel.Create Method

Definition

Overloads

Create(NSUrl, NSError)

Creates and returns a CoreML model with the data that is stored at the specified url, reporting any errors in error.

Create(NSUrl, MLModelConfiguration, NSError)

Create(NSUrl, NSError)

Creates and returns a CoreML model with the data that is stored at the specified url, reporting any errors in error.

[Foundation.Export("modelWithContentsOfURL:error:")]
public static CoreML.MLModel Create (Foundation.NSUrl url, out Foundation.NSError error);
static member Create : Foundation.NSUrl *  -> CoreML.MLModel

Parameters

url
NSUrl

The URL of the model resource.

error
NSError

On failure, the error that occurred.

Returns

The new model, or null if an error occurred.

Attributes

Applies to

Create(NSUrl, MLModelConfiguration, NSError)

[Foundation.Export("modelWithContentsOfURL:configuration:error:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 5, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 14, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static CoreML.MLModel Create (Foundation.NSUrl url, CoreML.MLModelConfiguration configuration, out Foundation.NSError error);
static member Create : Foundation.NSUrl * CoreML.MLModelConfiguration *  -> CoreML.MLModel

Parameters

url
NSUrl
configuration
MLModelConfiguration
error
NSError

Returns

Attributes

Applies to