IMLCustomModel 接口

定义

定义自定义 CoreML 模型的接口。

[Foundation.Protocol(Name="MLCustomModel", WrapperType=typeof(CoreML.MLCustomModelWrapper))]
[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 interface IMLCustomModel : IDisposable, ObjCRuntime.INativeObject
type IMLCustomModel = interface
    interface INativeObject
    interface IDisposable
派生
属性
实现

属性

Handle

处理指向非托管对象表示形式的 (指针) 。

(继承自 INativeObject)

方法

GetPrediction(IMLFeatureProvider, MLPredictionOptions, NSError)

返回模型的预测值,给定 。

扩展方法

GetPredictions(IMLCustomModel, IMLBatchProvider, MLPredictionOptions, NSError)

返回描述 IMLBatchProvider 给定 和 模型的输出的 。

适用于