Share via


MLCustomLayer_Extensions.Encode Method

Definition

Sets outputs by applying inputs to the function described by commandBuffer.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static bool Encode(this CoreML.IMLCustomLayer This, Metal.IMTLCommandBuffer commandBuffer, Metal.IMTLTexture[] inputs, Metal.IMTLTexture[] outputs, out Foundation.NSError? error);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Encode : CoreML.IMLCustomLayer * Metal.IMTLCommandBuffer * Metal.IMTLTexture[] * Metal.IMTLTexture[] * NSError -> bool

Parameters

commandBuffer
IMTLCommandBuffer
inputs
IMTLTexture[]
outputs
IMTLTexture[]
error
NSError

Returns

Attributes

Applies to