withSettings method

ControlVector withSettings({
  1. ControlMode? mode,
  2. double? scale,
  3. int? firstLayer,
  4. int? lastLayer,
})

This vector's directions with another mode, scale or layer range.

Implementation

ControlVector withSettings({
  ControlMode? mode,
  double? scale,
  int? firstLayer,
  int? lastLayer,
}) => ControlVector(
  directions,
  hiddenSize: hiddenSize,
  mode: mode ?? this.mode,
  scale: scale ?? this.scale,
  firstLayer: firstLayer ?? this.firstLayer,
  lastLayer: lastLayer ?? this.lastLayer,
);