IMLCustomLayer インターフェイス

定義

カスタム モデル レイヤーに必要なメソッドを定義するインターフェイス。

[Foundation.Protocol(Name="MLCustomLayer", WrapperType=typeof(CoreML.MLCustomLayerWrapper))]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 2, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, 2, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 2, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public interface IMLCustomLayer : IDisposable, ObjCRuntime.INativeObject
type IMLCustomLayer = interface
    interface INativeObject
    interface IDisposable
属性
実装

プロパティ

Handle

アンマネージド オブジェクト表現へのハンドル (ポインター)。

(継承元 INativeObject)

メソッド

EvaluateOnCpu(MLMultiArray[], MLMultiArray[], NSError)

CPU を使用して計算を行うことに基づいてを設定します。

GetOutputShapes(NSArray[], NSError)

出力テンソルの次元を記述する数値の配列として、出力データ図形を取得します。

SetWeightData(NSData[], NSError)

レイヤーの内部ウェイトを設定します。

拡張メソッド

Encode(IMLCustomLayer, IMTLCommandBuffer, IMTLTexture[], IMTLTexture[], NSError)

で記述された関数に を適用して設定します。

適用対象