---
title: "reshape(to:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/bnnsgraph/builder/tensor/reshape(to:)-9stle"
---

# reshape(to:)

Adds a reshape operation to the current graph.

## Declaration

```swift
func reshape(to shape: [Int]) -> BNNSGraph.Builder.Tensor<T>
```

## Parameters

- `shape`: A tensor that specifies the new shape.
