Class: LlamaCpp::LlamaPerfSamplerData
- Inherits:
-
Object
- Object
- LlamaCpp::LlamaPerfSamplerData
- 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_sample ⇒ Integer
3705 3706 3707 3708 |
# File 'ext/llama_cpp/llama_cpp.c', line 3705
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_ms ⇒ Float
3700 3701 3702 3703 |
# File 'ext/llama_cpp/llama_cpp.c', line 3700
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);
}
|