---
title: BNNSGraph.Builder
framework: accelerate
role: symbol
role_heading: Structure
path: accelerate/bnnsgraph/builder
---

# BNNSGraph.Builder

A structure thats provides a closure you can use to define the arguments and operations of a BNNS Graph.

## Declaration

```swift
struct Builder
```

## Topics

### Protocols

- [BNNSGraph.Builder.OperationParameter](accelerate/bnnsgraph/builder/operationparameter.md)
- [BNNSGraph.Builder.SliceIndex](accelerate/bnnsgraph/builder/sliceindex.md)

### Structures

- [BNNSGraph.Builder.SliceRange](accelerate/bnnsgraph/builder/slicerange.md)
- [BNNSGraph.Builder.Tensor](accelerate/bnnsgraph/builder/tensor.md)

### Instance Methods

- [argument(name:dataType:shape:intent:)](accelerate/bnnsgraph/builder/argument(name:datatype:shape:intent:).md)
- [concatenate(_:axis:)](accelerate/bnnsgraph/builder/concatenate(_:axis:).md)
- [constant(name:value:)](accelerate/bnnsgraph/builder/constant(name:value:).md)
- [constant(name:values:shape:)](accelerate/bnnsgraph/builder/constant(name:values:shape:).md)
- [constant(values:rowMajor:)](accelerate/bnnsgraph/builder/constant(values:rowmajor:)-6b7b8.md)
- [constant(values:rowMajor:)](accelerate/bnnsgraph/builder/constant(values:rowmajor:)-7b4v2.md)

### Type Aliases

- [BNNSGraph.Builder.PoolingPadding](accelerate/bnnsgraph/builder/poolingpadding.md)

### Enumerations

- [BNNSGraph.Builder.Activation](accelerate/bnnsgraph/builder/activation.md)
- [BNNSGraph.Builder.CeilingMode](accelerate/bnnsgraph/builder/ceilingmode.md)
- [BNNSGraph.Builder.ConvolutionPadding](accelerate/bnnsgraph/builder/convolutionpadding.md)
- [BNNSGraph.Builder.Direction](accelerate/bnnsgraph/builder/direction.md)
- [BNNSGraph.Builder.Intent](accelerate/bnnsgraph/builder/intent.md)
- [BNNSGraph.Builder.Padding](accelerate/bnnsgraph/builder/padding.md)
- [BNNSGraph.Builder.PoolingFunction](accelerate/bnnsgraph/builder/poolingfunction.md)
- [BNNSGraph.Builder.ScatterMode](accelerate/bnnsgraph/builder/scattermode.md)
- [BNNSGraph.Builder.SortOrder](accelerate/bnnsgraph/builder/sortorder.md)

## See Also

### Building graphs in Swift

- [makeContext(options:_:)](accelerate/bnnsgraph/makecontext(options:_:).md)
- [BNNSGraph.Builder.Tensor](accelerate/bnnsgraph/builder/tensor.md)
- [Supporting real-time ML inference on the CPU](accelerate/supporting-real-time-ml-inference-on-the-cpu.md)
