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

# MLCGatherLayer

A layer that fetches data at the locations you specify.

```
class MLCGatherLayer
```

## Topics

### Creating Gather Layers

[`init(dimension:)`](/documentation/MLCompute/MLCGatherLayer/init(dimension:))

Creates a gather layer with the dimension you specify.

### Inspecting Gather Layers

[`dimension`](/documentation/MLCompute/MLCGatherLayer/dimension)

The dimension to index.



---

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)