One Logo Pool Ball
MetalPerformanceShaders · IOS API REFERENCE

MPSCNNDropout

class · iOS 11.3+ · SDK 27.1

class MPSCNNDropout

Members (9)

init · iOS 11.3+

init

TypeScript
static initCoderDevice(aDecoder: _Foundation_NSCoder, device: SDKHandle): (MPSCNNDropout) | null
Swift declaration
init?(coder aDecoder: NSCoder, device: any MTLDevice)
init · iOS 11.3+

init

TypeScript
static initDeviceKeepProbabilitySeedMaskStrideInPixels(device: SDKHandle, keepProbability: number, seed: number, maskStrideInPixels: _Metal_MTLSize): MPSCNNDropout
Swift declaration
init(device: any MTLDevice, keepProbability: Float, seed: Int, maskStrideInPixels: MTLSize)
method · iOS 11.3+

resultStateBatch

TypeScript
resultStateBatch(sourceImage: Array<MPSImage>, sourceStates: (Array<Array<MPSState>>) | null, destinationImage: Array<MPSImage>): (MPSCNNDropoutGradientState) | null
Swift declaration
func resultStateBatch(sourceImage: [MPSImage], sourceStates: [[MPSState]]?, destinationImage: [MPSImage]) -> MPSCNNDropoutGradientState?
method · iOS 11.3+

resultState

TypeScript
resultState(sourceImage: MPSImage, sourceStates: (Array<MPSState>) | null, destinationImage: MPSImage): (MPSCNNDropoutGradientState) | null
Swift declaration
func resultState(sourceImage: MPSImage, sourceStates: [MPSState]?, destinationImage: MPSImage) -> MPSCNNDropoutGradientState?
method · iOS 11.3+

temporaryResultStateBatch

TypeScript
temporaryResultStateBatch(commandBuffer: SDKHandle, sourceImage: Array<MPSImage>, sourceStates: (Array<Array<MPSState>>) | null, destinationImage: Array<MPSImage>): (Array<MPSCNNDropoutGradientState>) | null
Swift declaration
func temporaryResultStateBatch(commandBuffer: any MTLCommandBuffer, sourceImage: [MPSImage], sourceStates: [[MPSState]]?, destinationImage: [MPSImage]) -> [MPSCNNDropoutGradientState]?
method · iOS 11.3+

temporaryResultState

TypeScript
temporaryResultState(commandBuffer: SDKHandle, sourceImage: MPSImage, sourceStates: (Array<MPSState>) | null, destinationImage: MPSImage): (MPSCNNDropoutGradientState) | null
Swift declaration
func temporaryResultState(commandBuffer: any MTLCommandBuffer, sourceImage: MPSImage, sourceStates: [MPSState]?, destinationImage: MPSImage) -> MPSCNNDropoutGradientState?
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.

MPSCNNDropout.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All MetalPerformanceShaders types →