Szerkesztés

Megosztás a következőn keresztül:


IMLCustomLayer Interface

Definition

Interface defining methods necessary for a custom model layer.

[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
Attributes
Implements

Properties

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

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

Sets based on using the CPU to do the calculations.

GetOutputShapes(NSArray[], NSError)

Retrieves the output data shape, as an array of numbers describing the dimensions of the output tensor.

SetWeightData(NSData[], NSError)

Sets the internal weights of the layer.

Extension Methods

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

Sets by applying to the function described by .

Applies to