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

# offsets

An array of length four that determines from which offset to start reading the input tensor.

## Declaration

```swift
var offsets: [NSNumber] { get set }
```

## Discussion

Discussion Only used when paddingStyle is MPSGraphPaddingStyleExplicitOffset. For example zero offset means that the first stencil window will align its top-left corner (in 4 dimensions) to the top-left corner of the input tensor. Default value: @[ @0, @0, @0, @0 ]
