---
title: "init(shape:)"
framework: createmlcomponents
role: symbol
role_heading: Initializer
path: "createmlcomponents/reshaper/init(shape:)"
---

# init(shape:)

Creates a reshape transformer.

## Declaration

```swift
init(shape: [Int])
```

## Parameters

- `shape`: The target shape.
