init(input:output:rate:seed:control:filterParameters:)
Returns a new dropout layer.
Declaration
convenience init?(input: BNNSNDArrayDescriptor, output: BNNSNDArrayDescriptor, rate: Float, seed: UInt32, control: UInt8, filterParameters: BNNSFilterParameters? = nil)Parameters
- input:
The descriptor of the input.
- output:
The descriptor of the output.
- rate:
The probability that the layer drops out an element or a group of elements.
- seed:
The seed for the random number generator that the layer ignores if zero.
- control:
An 8-bit bit mask that indicates the dimension of the grouping of the dropout decision.
- filterParameters:
The filter runtime parameters.