---
title: MLCDropoutLayer
framework: ML Compute
role: symbol
role_heading: Class
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlcdropoutlayer
---

# MLCDropoutLayer

A layer that deactivates neurons randomly to avoid overfitting.

## Declaration

```swift
class MLCDropoutLayer
```

## Topics

### Creating Dropout Layers

- [init(rate:seed:)](mlcompute/mlcdropoutlayer/init(rate:seed:).md)

### Inspecting a Dropout Layer

- [rate](mlcompute/mlcdropoutlayer/rate.md)
- [seed](mlcompute/mlcdropoutlayer/seed.md)

## Relationships

### Inherits From

- [MLCLayer](mlcompute/mlclayer.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Normalization Layers

- [MLCLayerNormalizationLayer](mlcompute/mlclayernormalizationlayer.md)
- [MLCBatchNormalizationLayer](mlcompute/mlcbatchnormalizationlayer.md)
- [MLCGroupNormalizationLayer](mlcompute/mlcgroupnormalizationlayer.md)
- [MLCInstanceNormalizationLayer](mlcompute/mlcinstancenormalizationlayer.md)
