---
title: MTLTensorDescriptor
framework: metal
role: symbol
role_heading: Class
path: metal/mtltensordescriptor
---

# MTLTensorDescriptor

A configuration type for creating new tensor instances.

## Declaration

```swift
class MTLTensorDescriptor
```

## Topics

### Instance Properties

- [auxiliaryPlanes](metal/mtltensordescriptor/auxiliaryplanes.md)
- [cpuCacheMode](metal/mtltensordescriptor/cpucachemode.md)
- [dataType](metal/mtltensordescriptor/datatype.md)
- [dimensions](metal/mtltensordescriptor/dimensions.md)
- [hazardTrackingMode](metal/mtltensordescriptor/hazardtrackingmode.md)
- [resourceOptions](metal/mtltensordescriptor/resourceoptions.md)
- [storageMode](metal/mtltensordescriptor/storagemode.md)
- [strides](metal/mtltensordescriptor/strides.md)
- [usage](metal/mtltensordescriptor/usage.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

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

## See Also

### Tensors

- [MTLTensor](metal/mtltensor.md)
- [MTLTensorExtents](metal/mtltensorextents.md)
- [MTLTensorReferenceType](metal/mtltensorreferencetype.md)
- [MTLTensorUsage](metal/mtltensorusage.md)
- [MTLTensorDomain](metal/mtltensordomain.md)
- [MTLTensorBinding](metal/mtltensorbinding.md)
- [MTLTensorError](metal/mtltensorerror-swift.struct.md)
- [MTLTensorError.Code](metal/mtltensorerror-swift.struct/code.md)
- [MTLTensorDataType](metal/mtltensordatatype.md)
- [MTLTensorDomain](metal/mtltensordomain.md)
- [MTL_TENSOR_MAX_RANK](metal/mtl_tensor_max_rank.md)
