---
title: MLMultiArrayShapeConstraintType
framework: coreml
role: symbol
role_heading: Enumeration
path: coreml/mlmultiarrayshapeconstrainttype
---

# MLMultiArrayShapeConstraintType

The possible types of shape constraints.

## Declaration

```swift
enum MLMultiArrayShapeConstraintType
```

## Topics

### Constraint types

- [MLMultiArrayShapeConstraintType.enumerated](coreml/mlmultiarrayshapeconstrainttype/enumerated.md)
- [MLMultiArrayShapeConstraintType.range](coreml/mlmultiarrayshapeconstrainttype/range.md)
- [MLMultiArrayShapeConstraintType.unspecified](coreml/mlmultiarrayshapeconstrainttype/unspecified.md)

### Creating a constraint type

- [init(rawValue:)](coreml/mlmultiarrayshapeconstrainttype/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Accessing the Constraints

- [enumeratedShapes](coreml/mlmultiarrayshapeconstraint/enumeratedshapes.md)
- [sizeRangeForDimension](coreml/mlmultiarrayshapeconstraint/sizerangefordimension.md)
- [type](coreml/mlmultiarrayshapeconstraint/type.md)
