---
title: maxTensorDimensions
framework: ML Compute
role: symbol
role_heading: Type Property
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlctensordescriptor/maxtensordimensions
---

# maxTensorDimensions

The maximum number of tensor dimensions.

## Declaration

```swift
class var maxTensorDimensions: Int { get }
```

## See Also

### Creating Tensor Descriptors

- [init(shape:dataType:)](mlcompute/mlctensordescriptor/init(shape:datatype:).md)
- [init(shape:sequenceLengths:sortedSequences:dataType:)](mlcompute/mlctensordescriptor/init(shape:sequencelengths:sortedsequences:datatype:).md)
- [init(width:height:featureChannelCount:batchSize:)](mlcompute/mlctensordescriptor/init(width:height:featurechannelcount:batchsize:).md)
- [init(width:height:featureChannelCount:batchSize:dataType:)](mlcompute/mlctensordescriptor/init(width:height:featurechannelcount:batchsize:datatype:).md)
- [init(convolutionWeightsWithInputFeatureChannelCount:outputFeatureChannelCount:dataType:)](mlcompute/mlctensordescriptor/init(convolutionweightswithinputfeaturechannelcount:outputfeaturechannelcount:datatype:).md)
- [init(convolutionWeightsWithWidth:height:inputFeatureChannelCount:outputFeatureChannelCount:dataType:)](mlcompute/mlctensordescriptor/init(convolutionweightswithwidth:height:inputfeaturechannelcount:outputfeaturechannelcount:datatype:).md)
- [init(convolutionBiasesWithFeatureChannelCount:dataType:)](mlcompute/mlctensordescriptor/init(convolutionbiaseswithfeaturechannelcount:datatype:).md)
