<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSDataLayoutConvolutionWeightsOIHW_Pack32",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@EA@BNNSDataLayout@BNNSDataLayoutConvolutionWeightsOIHW_Pack32"
  },
  "title" : "BNNSDataLayoutConvolutionWeightsOIHW_Pack32"
}
-->

# BNNSDataLayoutConvolutionWeightsOIHW_Pack32

A constant that represents a 4D array of packed convolution weights with 32-output channel packing and 128-byte array address alignment.

```
var BNNSDataLayoutConvolutionWeightsOIHW_Pack32: BNNSDataLayout { get }
```

## Discussion

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

`OutChannelPositionInGroup + kw * 32 + ky * kernel_width * 32 + InChannel * kernel_height * kernel_width * 32 + OutChannelGroup * input_channels * kernel_height * kernel_width * 32`

Where:

- `kernel_width` is the kernel width.
- `kernel_height` is the kernel height.
- `input_channels` is the number of input channels.
- `output_channels` is the number of output channels.
- `OutChannelGroup = OutChannel / 32`.
- `OutChannelPositionInGroup = OutChannel % 32`.
- `kw` is `size[0]` and `kx` is between `0` to `kw-1`.
- `kh` is `size[1]` and `ky` is between `0` to `kh-1`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)