One Logo Pool Ball
Accelerate · IOS API REFERENCE

BNNS.FusedLayer

class · iOS 14.0+ · SDK 27.1

class FusedLayer

A wrapper around a BNNS fused layer.

Members (2)

method · iOS 14.0+

applyBackward

TypeScript
applyBackward(batchSize: number, input: BNNSNDArrayDescriptor, output: BNNSNDArrayDescriptor, outputGradient: BNNSNDArrayDescriptor, inputGradient: BNNSNDArrayDescriptor, parameterGradients: Array<BNNSNDArrayDescriptor>): void
Swift declaration
func applyBackward(batchSize: Int, input: BNNSNDArrayDescriptor, output: BNNSNDArrayDescriptor, outputGradient: BNNSNDArrayDescriptor, generatingInputGradient inputGradient: BNNSNDArrayDescriptor, generatingParameterGradients parameterGradients: [BNNSNDArrayDescriptor]) throws

Applies the layer backward to generate input and parameter gradients. - Parameter batchSize: The number of input-output pairs to process. - Parameter input: The input descriptor. - Parameter output: The output descriptor. - Parameter outputGradient: The output gradient descriptor. - Parameter inputGradient: The input gradient descriptor. - Parameter parameterGradients: An array of parameter gradient descriptors.

method · iOS 14.0+

apply

TypeScript
apply(batchSize: number, input: BNNSNDArrayDescriptor, output: BNNSNDArrayDescriptor, learningPhase: BNNS_LearningPhase): void
Swift declaration
func apply(batchSize: Int, input: BNNSNDArrayDescriptor, output: BNNSNDArrayDescriptor, for learningPhase: BNNS.LearningPhase) throws

Applies the layer to several pairs of (input, output) data. - Parameter batchSize: The number of input-output pairs to process. - Parameter input: The input descriptor. - Parameter output: The output descriptor. - Parameter learningPhase: Specifies whether this function is being called during training.

Skipped declarations

No declarations were skipped in this snapshot.

All Accelerate types →