Kotensor
Toggle table of contents
1.2.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Kotensor
Kotensor
/
io.kotensor.core
/
Sampler
Sampler
class
Sampler
(
source
)
Members
Properties
sampling
Link copied to clipboard
val
sampling
:
Sampling
vocabulary
Size
Link copied to clipboard
val
vocabularySize
:
Int
Functions
next
Link copied to clipboard
fun
next
(
logits
:
FloatArray
,
history
:
IntArray
=
IntArray(0)
,
historyLength
:
Int
=
history.size
)
:
Int