<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSDataLayoutNSE",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@EA@BNNSDataLayout@BNNSDataLayoutNSE"
  },
  "title" : "BNNSDataLayoutNSE"
}
-->

# BNNSDataLayoutNSE

A constant that represents a 3D tensor with the size elements embedding dimension, sequence length, and batch size.

```
var BNNSDataLayoutNSE: BNNSDataLayout { get }
```

## Discussion

The value `(e, s, n)` is at index `e * stride[0] + s * stride[1] + n * stride[2]`.

- `size[0]` is the embedding dimension (`e`).
- `size[1]` is the sequence length (`s`).
- `size[2]` is the batch size (`n`).

---

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)