Freigeben über


MLModel.Create Methode

Definition

Überlädt

Create(NSUrl, NSError)

Erstellt ein CoreML-Modell mit den Daten, die am angegebenen urlgespeichert sind, und gibt es zurück, und meldet alle Fehler in error.

Create(NSUrl, MLModelConfiguration, NSError)

Create(NSUrl, NSError)

Erstellt ein CoreML-Modell mit den Daten, die am angegebenen urlgespeichert sind, und gibt es zurück, und meldet alle Fehler 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

Parameter

url
NSUrl

Die URL der Modellressource.

error
NSError

Bei Einem Fehler der aufgetretene Fehler.

Gibt zurück

Das neue Modell, oder null , wenn ein Fehler aufgetreten ist.

Attribute

Gilt für:

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

Parameter

url
NSUrl
configuration
MLModelConfiguration
error
NSError

Gibt zurück

Attribute

Gilt für: