---
title: "init(dataType:shape:stride:)"
framework: accelerate
role: symbol
role_heading: Initializer
path: "accelerate/bnnstensor/init(datatype:shape:stride:)"
---

# init(dataType:shape:stride:)

Creates an unallocated BNNSTensor

## Declaration

```swift
init(dataType: BNNSDataType, shape: [Int], stride: [Int])
```

## Parameters

- `shape`: The shape of the tensor.
- `stride`: The stride of the tensor.
