ModelConfigurationMessage class

Mirrors MLModelConfiguration.

Constructors

ModelConfigurationMessage({required ComputeUnitsMessage computeUnits, required bool allowLowPrecisionAccumulationOnGPU, String? functionName, String? modelDisplayName, ReshapeFrequencyMessage? reshapeFrequency, SpecializationStrategyMessage? specializationStrategy})

Properties

allowLowPrecisionAccumulationOnGPU ↔ bool
getter/setter pair
computeUnits ↔ ComputeUnitsMessage
getter/setter pair
functionName ↔ String?
Selects a function of a multi-function model (iOS 18 / macOS 15).
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
modelDisplayName ↔ String?
getter/setter pair
reshapeFrequency ↔ ReshapeFrequencyMessage?
MLOptimizationHints.reshapeFrequency, left alone when null.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
specializationStrategy ↔ SpecializationStrategyMessage?
MLOptimizationHints.specializationStrategy, left alone when null.
getter/setter pair

Methods

encode() → Object
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

decode(Object result) → ModelConfigurationMessage