---
title: boundaryMode
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Property
path: metalperformanceshadersgraph/mpsgraphstencilopdescriptor/boundarymode
---

# boundaryMode

The property that determines which values to use for padding the input tensor.

## Declaration

```swift
var boundaryMode: MPSGraphPaddingMode { get set }
```

## Discussion

Discussion Default value: MPSGraphPaddingModeZero.
