---
title: MLCSoftmaxLayer
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/mlcsoftmaxlayer
---

# MLCSoftmaxLayer

A layer that outputs a probability distribution as attention weights.

## Declaration

```swift
class MLCSoftmaxLayer
```

## Topics

### Creating Softmax Layers

- [init(operation:)](mlcompute/mlcsoftmaxlayer/init(operation:).md)
- [init(operation:dimension:)](mlcompute/mlcsoftmaxlayer/init(operation:dimension:).md)
- [MLCSoftmaxOperation](mlcompute/mlcsoftmaxoperation.md)

### Inspecting Softmax Layers

- [operation](mlcompute/mlcsoftmaxlayer/operation.md)
- [dimension](mlcompute/mlcsoftmaxlayer/dimension.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

### Activation Layers

- [MLCActivationLayer](mlcompute/mlcactivationlayer.md)
- [MLCMultiheadAttentionLayer](mlcompute/mlcmultiheadattentionlayer.md)
