---
title: MPSGraphSDPADescriptor
framework: metalperformanceshadersgraph
role: symbol
role_heading: Class
path: metalperformanceshadersgraph/mpsgraphsdpadescriptor
---

# MPSGraphSDPADescriptor

A descriptor that configures a scaled dot product attention (SDPA) operation.

## Declaration

```swift
class MPSGraphSDPADescriptor
```

## Overview

Overview Use this descriptor with scaledDotProductAttention(query:key:value:descriptor:name:) to specify optional features such as an attention mask, causal masking, and attention sinks.

## Topics

### Initializers

- [init(scale:)](metalperformanceshadersgraph/mpsgraphsdpadescriptor/init(scale:).md)

### Instance Properties

- [isCausal](metalperformanceshadersgraph/mpsgraphsdpadescriptor/iscausal.md)
- [maskTensor](metalperformanceshadersgraph/mpsgraphsdpadescriptor/masktensor.md)
- [scale](metalperformanceshadersgraph/mpsgraphsdpadescriptor/scale.md)
- [sinksTensor](metalperformanceshadersgraph/mpsgraphsdpadescriptor/sinkstensor.md)

## Relationships

### Inherits From

- [MPSGraphObject](metalperformanceshadersgraph/mpsgraphobject.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
