---
title: "init(_:)"
framework: accelerate
role: symbol
role_heading: Initializer
path: "accelerate/bnnsgraph/shape/init(_:)"
---

# init(_:)

Creates a shape structure from the given array elements.

## Declaration

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

## Parameters

- `shape`: The source array.

## See Also

### Creating a shape structure

- [init(arrayLiteral:)](accelerate/bnnsgraph/shape/init(arrayliteral:).md)
