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

# MLStateConstraint

Constraint of a state feature value.

```
class MLStateConstraint
```

## Topics

### Inspecting a state constraint

[`bufferShape`](/documentation/CoreML/MLStateConstraint/bufferShape-4zb3w)

The shape of the state buffer.

[`bufferShape`](/documentation/CoreML/MLStateConstraint/bufferShape-6o5vn)

The shape of the state buffer.

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

The data type of scalars in the state buffer.



---

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)