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)


3719
3720
3721
3722
# File 'ext/llama_cpp/llama_cpp.c', line 3719

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)


3714
3715
3716
3717
# File 'ext/llama_cpp/llama_cpp.c', line 3714

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);
}