<!--
{
  "availability" : [
    "iOS: 14.0.0 - 17.0.0",
    "iPadOS: 14.0.0 - 17.0.0",
    "macCatalyst: 14.0.0 - 17.0.0",
    "macOS: 11.0.0 - 14.0.0",
    "tvOS: 14.0.0 - 17.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "MLCompute",
  "identifier" : "/documentation/MLCompute/MLCPaddingPolicy-3hic8",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "ML Compute"
    ],
    "preciseIdentifier" : "s:9MLCompute16MLCPaddingPolicyO"
  },
  "title" : "MLCPaddingPolicy"
}
-->

# MLCPaddingPolicy

A padding policy that you specify for a convolution or pooling layer.

```
enum MLCPaddingPolicy
```

## Topics

### Enumeration Cases

[`MLCPaddingPolicy.same`](/documentation/MLCompute/MLCPaddingPolicy-3hic8/same)

[`MLCPaddingPolicy.valid`](/documentation/MLCompute/MLCPaddingPolicy-3hic8/valid)

[`MLCPaddingPolicy.sized(y:x:)`](/documentation/MLCompute/MLCPaddingPolicy-3hic8/sized(y:x:))

[`debugDescription`](/documentation/MLCompute/MLCPaddingPolicy-3hic8/debugDescription)

A textual description of the padding policy, suitable for debugging.



---

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)