<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLMultiArrayShapeConstraint",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "c:objc(cs)MLMultiArrayShapeConstraint"
  },
  "title" : "MLMultiArrayShapeConstraint"
}
-->

# MLMultiArrayShapeConstraint

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

```
class MLMultiArrayShapeConstraint
```

## Topics

### Accessing the Constraints

[`enumeratedShapes`](/documentation/CoreML/MLMultiArrayShapeConstraint/enumeratedShapes)

Array of allowed shapes for a multiarray feature.

[`sizeRangeForDimension`](/documentation/CoreML/MLMultiArrayShapeConstraint/sizeRangeForDimension)

The allowable range for a dimention of the multiarray.

[`type`](/documentation/CoreML/MLMultiArrayShapeConstraint/type)

The type of the shape constraint.

[`MLMultiArrayShapeConstraintType`](/documentation/CoreML/MLMultiArrayShapeConstraintType)

The possible types of shape constraints.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)