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

# reshape(to:)

Adds a dynamic reshape operation to the current graph.

## Declaration

```swift
func reshape(to shape: some BNNSGraph.Builder.OperationParameter<Int32>) -> BNNSGraph.Builder.Tensor<T>
```

## Parameters

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

## Discussion

Discussion This function reshapes a tensor based on the values in shape.
