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

# bnns_graph_shape_t

The specification of the shape of an argument.

## Declaration

```swift
struct bnns_graph_shape_t
```

## Overview

Overview Use a bnns_graph_shape_t structure to pass the rank and dimensions of tensors to the BNNSGraphContextSetDynamicShapes(_:_:_:_:) function.

## Topics

### Initializing a graph shape

- [init()](accelerate/bnns_graph_shape_t/init().md)
- [init(rank:shape:)](accelerate/bnns_graph_shape_t/init(rank:shape:).md)

### Specifying a shape’s properties

- [rank](accelerate/bnns_graph_shape_t/rank.md)
- [shape](accelerate/bnns_graph_shape_t/shape.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)

## See Also

### Specifying and querying a context’s properties

- [BNNSGraphContextSetStreamingAdvanceCount(_:_:)](accelerate/bnnsgraphcontextsetstreamingadvancecount(_:_:).md)
- [BNNSGraphContextSetArgumentType(_:_:)](accelerate/bnnsgraphcontextsetargumenttype(_:_:).md)
- [BNNSGraphArgumentType](accelerate/bnnsgraphargumenttype.md)
- [BNNSGraphContextSetDynamicShapes(_:_:_:_:)](accelerate/bnnsgraphcontextsetdynamicshapes(_:_:_:_:).md)
- [BNNSGraphContextSetBatchSize(_:_:_:)](accelerate/bnnsgraphcontextsetbatchsize(_:_:_:).md)
- [BNNSGraphContextEnableNanAndInfChecks(_:_:)](accelerate/bnnsgraphcontextenablenanandinfchecks(_:_:).md)
- [BNNSGraphContextGetWorkspaceSize(_:_:)](accelerate/bnnsgraphcontextgetworkspacesize(_:_:).md)
- [BNNSGraphContextSetStreamingAdvanceCount(_:_:)](accelerate/bnnsgraphcontextsetstreamingadvancecount(_:_:).md)
