Class: LLaMACpp::TokenDataArray
- Inherits:
-
Object
- Object
- LLaMACpp::TokenDataArray
- Defined in:
- ext/llama_cpp/dummy.rb
Overview
Class for token data array
Instance Method Summary collapse
-
#initialize(arr, sorted: false) ⇒ TokenDataArray
constructor
Create token data array.
-
#size ⇒ Integer
Returns the size of token data array.
-
#sorted ⇒ Boolean
Returns the flag for sorted.
Constructor Details
#initialize(arr, sorted: false) ⇒ TokenDataArray
Create token data array.
436 |
# File 'ext/llama_cpp/dummy.rb', line 436 def initialize(arr, sorted: false); end |
Instance Method Details
#size ⇒ Integer
Returns the size of token data array.
440 |
# File 'ext/llama_cpp/dummy.rb', line 440 def size; end |
#sorted ⇒ Boolean
Returns the flag for sorted.
444 |
# File 'ext/llama_cpp/dummy.rb', line 444 def sorted; end |