IMLCustomLayer Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 <param name="outputs" /> based on <param name="inputs" /> 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 <param name="outputs" /> by applying <param name="inputs" /> to the function described by <param name="commandBuffer" />. |