Contents

BNNSDataLayoutNSE

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

Declaration

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).

See Also

3D Data Layouts