knobs property

  1. @override
Map<String, ConfigKnob> get knobs
override

A mapping from configuration names to ConfigKnobs that can be used to configure this component.

Implementation

@override
Map<String, ConfigKnob<dynamic>> get knobs {
  formatsKnob.refreshChoices();
  return {
    'Boundary': boundaryKnob,
    'Sequence Length': sequenceLengthKnob,
    'Head Dimension': headDimensionKnob,
    'Value Dimension': valueDimensionKnob,
    'Numeric Formats': formatsKnob,
    'Output Width': outputWidthKnob,
    'Request ID Width': requestIdWidthKnob,
    'Counter Width': counterWidthKnob,
    'Clear Counters': clearCountersKnob,
    if (boundaryKnob.value == InferenceConfiguratorBoundary.actions)
      'Automatic Retirement': automaticRetireKnob,
    'Rounding': roundingKnob,
    'Overflow': overflowKnob,
  };
}