Share via


MPSCnnBinaryConvolutionNode.Create Method

Definition

Overloads

Create(MPSNNImageNode, IMPSCnnConvolutionDataSource, Single, MPSCnnBinaryConvolutionType, MPSCnnBinaryConvolutionFlags)

[Foundation.Export("nodeWithSource:weights:scaleValue:type:flags:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShaders.MPSCnnBinaryConvolutionNode Create(MetalPerformanceShaders.MPSNNImageNode sourceNode, MetalPerformanceShaders.IMPSCnnConvolutionDataSource weights, float scaleValue, MetalPerformanceShaders.MPSCnnBinaryConvolutionType type, MetalPerformanceShaders.MPSCnnBinaryConvolutionFlags flags);
[<Foundation.Export("nodeWithSource:weights:scaleValue:type:flags:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : MetalPerformanceShaders.MPSNNImageNode * MetalPerformanceShaders.IMPSCnnConvolutionDataSource * single * MetalPerformanceShaders.MPSCnnBinaryConvolutionType * MetalPerformanceShaders.MPSCnnBinaryConvolutionFlags -> MetalPerformanceShaders.MPSCnnBinaryConvolutionNode

Parameters

sourceNode
MPSNNImageNode
scaleValue
Single

Returns

Attributes

Applies to

Create(MPSNNImageNode, IMPSCnnConvolutionDataSource, Single[], Single[], Single[], Single[], MPSCnnBinaryConvolutionType, MPSCnnBinaryConvolutionFlags)

Create a new MPSCnnBinaryConvolutionNode instance.

public static MetalPerformanceShaders.MPSCnnBinaryConvolutionNode Create(MetalPerformanceShaders.MPSNNImageNode sourceNode, MetalPerformanceShaders.IMPSCnnConvolutionDataSource weights, float[]? outputBiasTerms, float[]? outputScaleTerms, float[]? inputBiasTerms, float[]? inputScaleTerms, MetalPerformanceShaders.MPSCnnBinaryConvolutionType type, MetalPerformanceShaders.MPSCnnBinaryConvolutionFlags flags);
static member Create : MetalPerformanceShaders.MPSNNImageNode * MetalPerformanceShaders.IMPSCnnConvolutionDataSource * single[] * single[] * single[] * single[] * MetalPerformanceShaders.MPSCnnBinaryConvolutionType * MetalPerformanceShaders.MPSCnnBinaryConvolutionFlags -> MetalPerformanceShaders.MPSCnnBinaryConvolutionNode

Parameters

sourceNode
MPSNNImageNode

An MPSNNImageNode node for the source image.

weights
IMPSCnnConvolutionDataSource

An IMPSCnnConvolutionDataSource instance that provides weights and biases.

outputBiasTerms
Single[]

An array of bias terms to be applied to the convolution output.

outputScaleTerms
Single[]

An array of scale terms to be applied to the convolution output.

inputBiasTerms
Single[]

An array of bias terms to be applied to the input before convulution and input scaling.

inputScaleTerms
Single[]

An array of scale terms to be applied to the input before convulution and input scaling.

type
MPSCnnBinaryConvolutionType

Which type of binary convulution to use.

flags
MPSCnnBinaryConvolutionFlags

Any flags for the new instance.

Returns

Applies to