<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSGraph/Builder/ConvolutionPadding/custom(padding:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate9BNNSGraphO7BuilderV18ConvolutionPaddingO6customyAGSaySiG_tcAGmF"
  },
  "title" : "BNNSGraph.Builder.ConvolutionPadding.custom(padding:)"
}
-->

# BNNSGraph.Builder.ConvolutionPadding.custom(padding:)

Custom padding

```
case custom(padding: [Int])
```

## Discussion

Specify the `padding` array to contain twice the number of spatial dimensions.
`padding[2*k]` specifies the amount of padding before spatial dimension `k`, and
`padding[2*k+1]` specifies the amount of padding after spatial dimension `k`.

---

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)