Compartilhar via


MLModel.Create Método

Definição

Sobrecargas

Create(NSUrl, NSError)

Cria e retorna um modelo CoreML com os dados armazenados no especificado url, relatando erros em error.

Create(NSUrl, MLModelConfiguration, NSError)

Create(NSUrl, NSError)

Cria e retorna um modelo CoreML com os dados armazenados no especificado url, relatando erros em error.

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

Parâmetros

url
NSUrl

A URL do recurso de modelo.

error
NSError

Em caso de falha, o erro que ocorreu.

Retornos

O novo modelo ou null se ocorreu um erro.

Atributos

Aplica-se a

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

Parâmetros

url
NSUrl
configuration
MLModelConfiguration
error
NSError

Retornos

Atributos

Aplica-se a