---
title: scale
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Property
path: metalperformanceshadersgraph/mpsgraphsdpadescriptor/scale
---

# scale

The scale applied to the result of the query–key matrix multiply before softmax. Typically set to 1/sqrt(headDimension).

## Declaration

```swift
var scale: Float { get set }
```
