Contents

BNNSDataLayoutConvolutionWeightsOIHW

A constant that represents a 4D array of convolution weights.

Declaration

var BNNSDataLayoutConvolutionWeightsOIHW: BNNSDataLayout { get }

Discussion

The value (kx ,ky, InChannel, OutChannel) is at index:

kx * stride[0] + ky * stride[1] + InChannel * stride[2] + OutChannel * stride[3].

  • size[0] is the convolution kernel width in pixels.

  • size[1] is the convolution kernel height in pixels.

  • size[2] is the number of input channels.

  • size[3] is the number of output channels.

See Also

4D Data Layouts