---
title: "init(arrayLiteral:)"
framework: accelerate
role: symbol
role_heading: Initializer
path: "accelerate/bnns/shape/init(arrayliteral:)"
---

# init(arrayLiteral:)

Returns a new shape with the specified size.

## Declaration

```swift
init(arrayLiteral: BNNS.Shape.ArrayLiteralElement...)
```

## Parameters

- `arrayLiteral`: An array that specifies the number of values in each dimension.

## Discussion

Discussion This initializer returns a shape with the default layout for the rank that’s equal to the count of arrayLiteral. The default layouts for each dimensionality are:

## See Also

### Creating a Shape

- [init(_:dataLayout:stride:)](accelerate/bnns/shape/init(_:datalayout:stride:).md)
