<!--
{
  "availability" : [
    "*: -",
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNS/DropoutLayer/init(input:output:rate:seed:control:filterParameters:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate4BNNSO12DropoutLayerC5input6output4rate4seed7control16filterParametersAESgSo21BNNSNDArrayDescriptora_ANSfs6UInt32Vs5UInt8VSo010BNNSFilterK0aSgtcfc"
  },
  "title" : "init(input:output:rate:seed:control:filterParameters:)"
}
-->

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

Returns a new dropout layer.

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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)