---
title: cpuCacheMode
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtltensordescriptor/cpucachemode
---

# cpuCacheMode

A value that configures the cache mode of CPU mapping of tensors you create with this descriptor.

## Declaration

```swift
var cpuCacheMode: MTLCPUCacheMode { get set }
```

## Discussion

Discussion The default value of this property is MTLCPUCacheMode.defaultCache.
