One Logo Pool Ball
MetalPerformanceShaders · IOS API REFERENCE

MPSCNNDropoutGradientNode

class · iOS 11.3+ · SDK 27.1

class MPSCNNDropoutGradientNode

Members (4)

init · iOS 11.3+

init

TypeScript
static init(sourceGradient: MPSNNImageNode, sourceImage: MPSNNImageNode, gradientState: MPSNNGradientStateNode, keepProbability: number, seed: number, maskStrideInPixels: _Metal_MTLSize): MPSCNNDropoutGradientNode
Swift declaration
init(sourceGradient: MPSNNImageNode, sourceImage: MPSNNImageNode, gradientState: MPSNNGradientStateNode, keepProbability: Float, seed: Int, maskStrideInPixels: MTLSize)
get · iOS 11.3+

keepProbability

TypeScript
get keepProbability(): number
Swift declaration
var keepProbability: Float { get }
get · iOS 11.3+

maskStrideInPixels

TypeScript
get maskStrideInPixels(): _Metal_MTLSize
Swift declaration
var maskStrideInPixels: MTLSize { get }
get · iOS 11.3+

seed

TypeScript
get seed(): number
Swift declaration
var 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 →