<!--
{
  "availability" : [
    "iOS: 14.0.0 - 17.4.0",
    "iPadOS: 14.0.0 - 17.4.0",
    "macCatalyst: 14.0.0 - 17.4.0",
    "macOS: 11.0.0 - 14.3.0",
    "tvOS: 14.0.0 - 17.4.0"
  ],
  "documentType" : "symbol",
  "framework" : "MLCompute",
  "identifier" : "/documentation/MLCompute/MLCDropoutLayer",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "ML Compute"
    ],
    "preciseIdentifier" : "c:objc(cs)MLCDropoutLayer"
  },
  "title" : "MLCDropoutLayer"
}
-->

# MLCDropoutLayer

A layer that deactivates neurons randomly to avoid overfitting.

```
class MLCDropoutLayer
```

## Topics

### Creating Dropout Layers

[`init(rate:seed:)`](/documentation/MLCompute/MLCDropoutLayer/init(rate:seed:))

Creates a dropout layer with the probability rate and random number generator seed you specify.

### Inspecting a Dropout Layer

[`rate`](/documentation/MLCompute/MLCDropoutLayer/rate)

The dropout rate you use for each element.

[`seed`](/documentation/MLCompute/MLCDropoutLayer/seed)

The seed you use to generate random numbers.



---

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)