---
title: bnns_graph_compile_options_t
framework: accelerate
role: symbol
role_heading: Structure
path: accelerate/bnns_graph_compile_options_t
---

# bnns_graph_compile_options_t

The compilation options that BNNS uses when compiling a source mlmodelc file to a graph object.

## Declaration

```swift
struct bnns_graph_compile_options_t
```

## Overview

Overview Call BNNSGraphCompileOptionsMakeDefault() to create a default options structure and then call functions such as BNNSGraphCompileOptionsSetOptimizationPreference(_:_:) to set indivual options.

## Topics

### Initializing an options structure

- [init()](accelerate/bnns_graph_compile_options_t/init().md)
- [init(data:size:)](accelerate/bnns_graph_compile_options_t/init(data:size:).md)

### Specifying an options structure’s properties

- [data](accelerate/bnns_graph_compile_options_t/data.md)
- [size](accelerate/bnns_graph_compile_options_t/size.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)

## See Also

### Specifying and querying compilation options

- [BNNSGraphCompileOptionsMakeDefault()](accelerate/bnnsgraphcompileoptionsmakedefault().md)
- [BNNSGraphCompileOptionsDestroy(_:)](accelerate/bnnsgraphcompileoptionsdestroy(_:).md)
- [BNNSGraphCompileOptionsSetOutputPath(_:_:)](accelerate/bnnsgraphcompileoptionssetoutputpath(_:_:).md)
- [BNNSGraphCompileOptionsGetOutputPath(_:)](accelerate/bnnsgraphcompileoptionsgetoutputpath(_:).md)
- [BNNSGraphCompileOptionsSetOutputFD(_:_:)](accelerate/bnnsgraphcompileoptionssetoutputfd(_:_:).md)
- [BNNSGraphCompileOptionsGetOutputFD(_:)](accelerate/bnnsgraphcompileoptionsgetoutputfd(_:).md)
- [BNNSGraphCompileOptionsSetTargetSingleThread(_:_:)](accelerate/bnnsgraphcompileoptionssettargetsinglethread(_:_:).md)
- [BNNSGraphCompileOptionsGetTargetSingleThread(_:)](accelerate/bnnsgraphcompileoptionsgettargetsinglethread(_:).md)
- [BNNSGraphCompileOptionsSetOptimizationPreference(_:_:)](accelerate/bnnsgraphcompileoptionssetoptimizationpreference(_:_:).md)
- [BNNSGraphCompileOptionsGetOptimizationPreference(_:)](accelerate/bnnsgraphcompileoptionsgetoptimizationpreference(_:).md)
- [BNNSGraphOptimizationPreference](accelerate/bnnsgraphoptimizationpreference.md)
- [BNNSGraphCompileOptionsSetGenerateDebugInfo(_:_:)](accelerate/bnnsgraphcompileoptionssetgeneratedebuginfo(_:_:).md)
- [BNNSGraphCompileOptionsGetGenerateDebugInfo(_:)](accelerate/bnnsgraphcompileoptionsgetgeneratedebuginfo(_:).md)
- [BNNSTargetSystemGeneric](accelerate/bnnstargetsystemgeneric.md)
