Contents

BNNSDataLayout4DLastMajor

A constant that represents a 4D last-major tensor.

Declaration

var BNNSDataLayout4DLastMajor: BNNSDataLayout { get }

Discussion

The value (i, j, k, l) is at index:

i * stride[0] + j * stride[1] + k * stride[2] + l * stride[3]

  • size[0] is the size of the first dimension (i).

  • size[1] is the size of the second dimension (j).

  • size[2] is the size of the third dimension (k).

  • size[3] is the size of the fourth dimension (l).

See Also

4D Data Layouts