BNNSDataLayoutConvolutionWeightsOIHrWr
A constant that represents a 4D array of rotated convolution weights.
Declaration
var BNNSDataLayoutConvolutionWeightsOIHrWr: BNNSDataLayout { get }Discussion
The value (kx, ky, InChannel, OutChannel) is at index:
(kw - 1 - kx) * stride[0] + (kh - 1 - ky) * stride[1] + OutChannel * stride[2] + InChannel * 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 output channels.size[3]is the number of input channels.kwissize[0]andkxis between0tokw-1.khissize[1]andkyis between0tokh-1.