The size and format constraints for an image feature.
SDKs
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
- watchOS 4.0+
Framework
- Core ML
Declaration
var imageConstraint: MLImage Constraint? { get }
The size and format constraints for an image feature.
SDKs
Framework
var imageConstraint: MLImage Constraint? { get }
class MLImage Constraint
The width, height, and pixel format constraints of an image feature.
var dictionary Constraint: MLDictionary Constraint?
The constraint for a dictionary feature.
class MLDictionary Constraint
The constraint on the keys for a dictionary feature.
var multi Array Constraint: MLMulti Array Constraint?
The constraints on a multidimensional array feature.
class MLMulti Array Constraint
The shape and data type constraints for a multidimensional array feature.
var sequence Constraint: MLSequence Constraint?
The constraints for a sequence feature.
class MLSequence Constraint
The constraints for a sequence feature.