<!--
{
  "availability" : [
    "iOS: 14.0.0 - 18.0.0",
    "iPadOS: 14.0.0 - 18.0.0",
    "macCatalyst: 14.0.0 - 18.0.0",
    "macOS: 11.0.0 - 15.0.0",
    "tvOS: 14.0.0 - 18.0.0",
    "visionOS: 1.0.0 - 2.0.0",
    "watchOS: 7.0.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSLayerParametersDropout/init(i_desc:o_desc:rate:seed:control:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:So26BNNSLayerParametersDropouta6i_desc02o_D04rate4seed7controlABSo21BNNSNDArrayDescriptora_AISfs6UInt32Vs5UInt8Vtcfc"
  },
  "title" : "init(i_desc:o_desc:rate:seed:control:)"
}
-->

# init(i_desc:o_desc:rate:seed:control:)

Returns a new dropout layer parameters structure from the specified parameters.

```
init(i_desc: BNNSNDArrayDescriptor, o_desc: BNNSNDArrayDescriptor, rate: Float, seed: UInt32, control: UInt8)
```

## Parameters

`i_desc`

The descriptor of the input.

`o_desc`

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.

## 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)