---
title: MLMultiArrayShapeConstraint
framework: coreml
role: symbol
role_heading: Class
path: coreml/mlmultiarrayshapeconstraint
---

# MLMultiArrayShapeConstraint

The lists of shapes or ranges of shapes that constrain a multiarray feature.

## Declaration

```swift
class MLMultiArrayShapeConstraint
```

## Topics

### Accessing the Constraints

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

### Initializers

- [init(coder:)](coreml/mlmultiarrayshapeconstraint/init(coder:).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)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Accessing the Constraints

- [shape](coreml/mlmultiarrayconstraint/shape.md)
- [dataType](coreml/mlmultiarrayconstraint/datatype.md)
- [shapeConstraint](coreml/mlmultiarrayconstraint/shapeconstraint.md)
