MetalPerformanceShaders · IOS API REFERENCE
MPSCNNDropoutGradientNode
class · iOS 11.3+ · SDK 27.1
class MPSCNNDropoutGradientNode
Members (4)
init · iOS 11.3+init
TypeScriptstatic init(sourceGradient: MPSNNImageNode, sourceImage: MPSNNImageNode, gradientState: MPSNNGradientStateNode, keepProbability: number, seed: number, maskStrideInPixels: _Metal_MTLSize): MPSCNNDropoutGradientNode
Swift declarationinit(sourceGradient: MPSNNImageNode, sourceImage: MPSNNImageNode, gradientState: MPSNNGradientStateNode, keepProbability: Float, seed: Int, maskStrideInPixels: MTLSize)
get · iOS 11.3+keepProbability
TypeScriptget keepProbability(): number
Swift declarationvar keepProbability: Float { get }
get · iOS 11.3+maskStrideInPixels
TypeScriptget maskStrideInPixels(): _Metal_MTLSize
Swift declarationvar maskStrideInPixels: MTLSize { get }
get · iOS 11.3+seed
TypeScriptget seed(): number
Swift declarationvar seed: Int { get }
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MPSCNNDropoutGradientNode.init()
inherited init: cannot prove legal (class declares 1 custom initializer)
All MetalPerformanceShaders types →