AttentionNumericFormatsKnob class
Shares named format definitions between the six attention arithmetic roles.
Only unused trailing definitions can be removed. Reassign their roles first so resizing never silently changes arithmetic precision.
- Inheritance
-
- Object
- ConfigKnob<
String> - GroupOfKnobs
- AttentionNumericFormatsKnob
Constructors
- AttentionNumericFormatsKnob()
-
Creates six small preview formats; every role remains independently set.
factory
Properties
-
assignments
→ Map<
AttentionFormatRole, AttentionFormatSelectionKnob> -
The format selected for each arithmetic role.
final
- definitionsKnob → ListOfKnobsKnob
-
Adjustable definitions; removed, unused entries are cached for regrowth.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of this group.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subKnobs
→ Map<
String, ConfigKnob> -
A mapping from a sub-knob name to a corresponding sub-ConfigKnob.
finalinherited
- value ↔ String
-
The primary value being stored in this knob.
getter/setter pairinherited
Methods
-
definitionAt(
int index) → NamedAttentionFormatKnob -
Returns the named definition at
index. -
formatFor(
AttentionFormatRole role) → InferenceFixedPointFormatKnob - Resolves a role to its shared numeric format.
-
loadJson(
Map< String, dynamic> decodedJson) → void -
Reconfigures this knob based on the provided deserialized JSON.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshChoices(
) → void - Refreshes the role menus to include precisely the active definitions.
-
toJson(
) → Map< String, dynamic> -
Serializes this knob into a JSON-compatible map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited