Class: LLaMACpp::TokenDataArray

Inherits:
Object
  • Object
show all
Defined in:
ext/llama_cpp/dummy.rb

Overview

Class for token data array

Instance Method Summary collapse

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

#sizeInteger

Returns the size of token data array.

Returns:

  • (Integer)


440
# File 'ext/llama_cpp/dummy.rb', line 440

def size; end

#sortedBoolean

Returns the flag for sorted.

Returns:

  • (Boolean)


444
# File 'ext/llama_cpp/dummy.rb', line 444

def sorted; end