MPSCnnBinaryConvolutionNode.Create Method
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.
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
- weights
- IMPSCnnConvolutionDataSource
- 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.
Which type of binary convulution to use.
Any flags for the new instance.