---
title: paddingIndex
framework: ML Compute
role: symbol
role_heading: Instance Property
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlcembeddingdescriptor/paddingindex-pb1e
---

# paddingIndex

An unsigned integer value that, if set, causes the layer to initialize the embedding vector at that index to zero.

## Declaration

```swift
var paddingIndex: Int? { get }
```

## Discussion

Discussion If set, the layer won’t update the embedding vector at paddingIndex in the gradient pass.

## See Also

### Inspecting Embedding Descriptors

- [embeddingCount](mlcompute/mlcembeddingdescriptor/embeddingcount-77gxz.md)
- [embeddingDimension](mlcompute/mlcembeddingdescriptor/embeddingdimension-1u9g.md)
- [maximumNorm](mlcompute/mlcembeddingdescriptor/maximumnorm-17u0k.md)
- [pNorm](mlcompute/mlcembeddingdescriptor/pnorm-8vhw1.md)
- [scalesGradientByFrequency](mlcompute/mlcembeddingdescriptor/scalesgradientbyfrequency.md)
