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
3774 3775 3776 3777 |
# File 'ext/llama_cpp/llama_cpp.c', line 3774
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
3769 3770 3771 3772 |
# File 'ext/llama_cpp/llama_cpp.c', line 3769
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);
}
|