apply(batchSize:input:output:for:)
Applies the layer to a set of input objects, writing the result to a set of output objects.
Declaration
func apply(batchSize: Int, input: BNNSNDArrayDescriptor, output: BNNSNDArrayDescriptor, for learningPhase: BNNS.LearningPhase) throwsParameters
- batchSize:
The number of input-output pairs.
- input:
The descriptor of the input.
- output:
The descriptor of the output.
- learningPhase:
An enumeration that specifies whether the function call context is training or inference.