<!--
{
  "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/MLCGraphCompilationOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "ML Compute"
    ],
    "preciseIdentifier" : "c:@E@MLCGraphCompilationOptions"
  },
  "title" : "MLCGraphCompilationOptions"
}
-->

# MLCGraphCompilationOptions

A bitmask that specifies the options you use when compiling a graph.

```
struct MLCGraphCompilationOptions
```

## Topics

### Creating Graph Compilation Options

[`init(rawValue:)`](/documentation/MLCompute/MLCGraphCompilationOptions/init(rawValue:))

Creates a graph compilation option with the specified raw value.

[`debugLayers`](/documentation/MLCompute/MLCGraphCompilationOptions/debugLayers)

The option to debug layers during graph compilation.

[`disableLayerFusion`](/documentation/MLCompute/MLCGraphCompilationOptions/disableLayerFusion)

The option to disable layer fusion during graph compilation.

[`linkGraphs`](/documentation/MLCompute/MLCGraphCompilationOptions/linkGraphs)

The option to link graphs during graph compilation.

[`computeAllGradients`](/documentation/MLCompute/MLCGraphCompilationOptions/computeAllGradients)

The option to compute all gradients during graph compilation.



---

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)