oa::FnMatrix::sampleLogits
samples one class per last-axis row. temperature < = 0 is greedy; inTopK < = 0 keeps the full vocabulary; inTopP is clamped to (0,1].
Function Documentation
samples one class per last-axis row. temperature < = 0 is greedy; inTopK < = 0 keeps the full vocabulary; inTopP is clamped to (0,1].
Parameters
inLogitsconst Matrix &—
inTemperatureoa::F32Default: 1.0F
inTopKoa::I32Default: 0
inTopPoa::F32Default: 1.0F
inSeedoa::U64Default: 0
Returns
MatrixThe declared return value.