MPSCnnDropoutNode.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
| Name | Description |
|---|---|
| Create(MPSNNImageNode) | |
| Create(MPSNNImageNode, Single) | |
| Create(MPSNNImageNode, Single, UIntPtr, MTLSize) |
Create(MPSNNImageNode)
[Foundation.Export("nodeWithSource:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShaders.MPSCnnDropoutNode Create(MetalPerformanceShaders.MPSNNImageNode source);
[<Foundation.Export("nodeWithSource:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : MetalPerformanceShaders.MPSNNImageNode -> MetalPerformanceShaders.MPSCnnDropoutNode
Parameters
- source
- MPSNNImageNode
Returns
- Attributes
Applies to
Create(MPSNNImageNode, Single)
[Foundation.Export("nodeWithSource:keepProbability:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShaders.MPSCnnDropoutNode Create(MetalPerformanceShaders.MPSNNImageNode source, float keepProbability);
[<Foundation.Export("nodeWithSource:keepProbability:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : MetalPerformanceShaders.MPSNNImageNode * single -> MetalPerformanceShaders.MPSCnnDropoutNode
Parameters
- source
- MPSNNImageNode
- keepProbability
- Single
Returns
- Attributes
Applies to
Create(MPSNNImageNode, Single, UIntPtr, MTLSize)
[Foundation.Export("nodeWithSource:keepProbability:seed:maskStrideInPixels:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShaders.MPSCnnDropoutNode Create(MetalPerformanceShaders.MPSNNImageNode source, float keepProbability, UIntPtr seed, Metal.MTLSize maskStrideInPixels);
[<Foundation.Export("nodeWithSource:keepProbability:seed:maskStrideInPixels:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : MetalPerformanceShaders.MPSNNImageNode * single * unativeint * Metal.MTLSize -> MetalPerformanceShaders.MPSCnnDropoutNode
Parameters
- source
- MPSNNImageNode
- keepProbability
- Single
- seed
-
UIntPtr
unativeint
- maskStrideInPixels
- MTLSize
Returns
- Attributes