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
3825 3826 3827 3828 |
# File 'ext/llama_cpp/llama_cpp.c', line 3825
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
3820 3821 3822 3823 |
# File 'ext/llama_cpp/llama_cpp.c', line 3820
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);
}
|