---
title: "init(input:output:rate:seed:control:filterParameters:)"
framework: accelerate
role: symbol
role_heading: Initializer
path: "accelerate/bnns/dropoutlayer/init(input:output:rate:seed:control:filterparameters:)"
---

# init(input:output:rate:seed:control:filterParameters:)

Returns a new dropout layer.

## Declaration

```swift
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.

## Discussion

Discussion important: Dropout layers only support arrays with a data type of float. The input shape must be equal to the output shape.
