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

# MLMultiArrayConstraint

The shape and data type constraints for a multidimensional array feature.

```
class MLMultiArrayConstraint
```

## Topics

### Accessing the Constraints

[`shape`](/documentation/CoreML/MLMultiArrayConstraint/shape)

The shape of the multi array.

[`dataType`](/documentation/CoreML/MLMultiArrayConstraint/dataType)

The type for the multi array.

[`shapeConstraint`](/documentation/CoreML/MLMultiArrayConstraint/shapeConstraint)

The constraint on the shape of the multiarray.

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

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



---

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)