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

# MLCGraphCompilationOptions

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

## Declaration

```swift
struct MLCGraphCompilationOptions
```

## Topics

### Creating Graph Compilation Options

- [init(rawValue:)](mlcompute/mlcgraphcompilationoptions/init(rawvalue:).md)
- [debugLayers](mlcompute/mlcgraphcompilationoptions/debuglayers.md)
- [disableLayerFusion](mlcompute/mlcgraphcompilationoptions/disablelayerfusion.md)
- [linkGraphs](mlcompute/mlcgraphcompilationoptions/linkgraphs.md)
- [computeAllGradients](mlcompute/mlcgraphcompilationoptions/computeallgradients.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Preparing Inference Graphs

- [addInputs(_:)](mlcompute/mlcinferencegraph/addinputs(_:).md)
- [addInputs(_:lossLabels:lossLabelWeights:)](mlcompute/mlcinferencegraph/addinputs(_:losslabels:losslabelweights:).md)
- [addOutputs(_:)](mlcompute/mlcinferencegraph/addoutputs(_:).md)
- [compile(options:device:)](mlcompute/mlcinferencegraph/compile(options:device:).md)
- [compile(options:device:inputTensors:inputTensorsData:)](mlcompute/mlcinferencegraph/compile(options:device:inputtensors:inputtensorsdata:).md)
- [link(with:)](mlcompute/mlcinferencegraph/link(with:).md)
