Class: LlamaCpp::LlamaPerfSamplerData

Inherits:
Object
  • Object
show all
Defined in:
ext/llama_cpp/llama_cpp.c,
ext/llama_cpp/llama_cpp.c

Overview

“struct llama_perf_sampler_data” wrapper class

Instance Method Summary collapse

Instance Method Details

#n_sampleInteger

Returns:

  • (Integer)


4200
4201
4202
4203
# File 'ext/llama_cpp/llama_cpp.c', line 4200

static VALUE llama_perf_sampler_data_get_n_sample(VALUE self) {
  struct llama_perf_sampler_data* data = get_llama_perf_sampler_data(self);
  return INT2NUM(data->n_sample);
}

#t_sample_msFloat

Returns:

  • (Float)


4195
4196
4197
4198
# File 'ext/llama_cpp/llama_cpp.c', line 4195

static VALUE llama_perf_sampler_data_get_t_sample_ms(VALUE self) {
  struct llama_perf_sampler_data* data = get_llama_perf_sampler_data(self);
  return DBL2NUM(data->t_sample_ms);
}