<!--
{
  "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/MLMultiArrayShapeConstraintType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "c:@E@MLMultiArrayShapeConstraintType"
  },
  "title" : "MLMultiArrayShapeConstraintType"
}
-->

# MLMultiArrayShapeConstraintType

The possible types of shape constraints.

```
enum MLMultiArrayShapeConstraintType
```

## Topics

### Constraint types

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

The constraint is an array of allowed shapes.

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

The constraint is a set of ranges allowed for the array shape.

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

The constraint type is undefined.

### Creating a constraint type

[`init(rawValue:)`](/documentation/CoreML/MLMultiArrayShapeConstraintType/init(rawValue:))



---

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)