Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
llama
master
Llama
ArrayView
Generator
ProbIndex
RunState
Sampler
TokenIndex
Tokenizer
Transformer
TransformerConfig
TransformerFile
Generated using Crystal 1.14.0
2024-11-26 09:54:40 UTC
struct
Llama::
ProbIndex
Llama::ProbIndex
Struct
Value
Object
Defined in:
llama/prob_index.cr
Constructors
.new
(prob : Float32, index : Int32)
Instance Method Summary
#index
: Int32
#index=
(index : Int32)
#prob
: Float32
#prob=
(prob : Float32)
Constructor Detail
def self.
new
(prob : Float32, index : Int32)
#
[
View source
]
Instance Method Detail
def
index
: Int32
#
[
View source
]
def
index=
(index : Int32)
#
[
View source
]
def
prob
: Float32
#
[
View source
]
def
prob=
(prob : Float32)
#
[
View source
]