Sampler class final

The sampler sent to LiteRT-LM, every value set.

Annotations
  • @immutable

Constructors

Sampler({required double temperature, required int topK, required double topP, required int randomSeed})
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
randomSeed → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
temperature → double
final
topK → int
final
topP → double
final

Methods

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