<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSTensor/init(dataType:shape:stride:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:So10BNNSTensora10AccelerateE8dataType5shape6strideABSo08BNNSDataD0a_SaySiGAItcfc"
  },
  "title" : "init(dataType:shape:stride:)"
}
-->

# init(dataType:shape:stride:)

Creates an unallocated `BNNSTensor`

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

## Parameters

`shape`

The shape of the tensor.

`stride`

The stride of the tensor.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)