---
title: MLCScatterLayer
framework: ML Compute
role: symbol
role_heading: Class
platforms: [iOS 14.5+, iPadOS 14.5+, Mac Catalyst 14.5+, macOS 11.3+, tvOS 14.5+]
path: mlcompute/mlcscatterlayer
---

# MLCScatterLayer

A layer that updates the output at an index you specify.

## Declaration

```swift
class MLCScatterLayer
```

## Topics

### Creating Scatter Layers

- [init(dimension:reductionType:)](mlcompute/mlcscatterlayer/init(dimension:reductiontype:).md)

### Inspecting Scatter Layers

- [dimension](mlcompute/mlcscatterlayer/dimension.md)
- [reductionType](mlcompute/mlcscatterlayer/reductiontype.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

### Transformation Layers

- [MLCTransposeLayer](mlcompute/mlctransposelayer.md)
- [MLCConcatenationLayer](mlcompute/mlcconcatenationlayer.md)
- [MLCReshapeLayer](mlcompute/mlcreshapelayer.md)
- [MLCSliceLayer](mlcompute/mlcslicelayer.md)
- [MLCSplitLayer](mlcompute/mlcsplitlayer.md)
- [MLCPaddingLayer](mlcompute/mlcpaddinglayer.md)
- [MLCSelectionLayer](mlcompute/mlcselectionlayer.md)
- [MLCGatherLayer](mlcompute/mlcgatherlayer.md)
