Contents

BNNSDataLayoutSNE

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

Declaration

var BNNSDataLayoutSNE: BNNSDataLayout { get }

Discussion

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

  • size[0] is the embedding dimension (e).

  • size[1] is the batch size (n).

  • size[2] is the sequence length (s).

See Also

3D Data Layouts