From f35e9b87cd259cbe9fa618ac9125f040ebc3e4b8 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Thu, 12 Sep 2024 09:23:50 +0300 Subject: [PATCH] minor : better local var name --- src/llama-sampling.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/llama-sampling.cpp b/src/llama-sampling.cpp index 87d975f60..ea83f6de2 100644 --- a/src/llama-sampling.cpp +++ b/src/llama-sampling.cpp @@ -1667,10 +1667,10 @@ struct llama_perf_sampler_data llama_perf_sampler(const struct llama_sampler * c return data; } - const auto * p = (const struct llama_sampler_chain *) chain->ctx; + const auto * ctx = (const struct llama_sampler_chain *) chain->ctx; - data.t_sample_ms = 1e-3 * p->t_sample_us; - data.n_sample = std::max(0, p->n_sample); + data.t_sample_ms = 1e-3 * ctx->t_sample_us; + data.n_sample = std::max(0, ctx->n_sample); return data; } @@ -1688,7 +1688,7 @@ void llama_perf_sampler_reset(struct llama_sampler * chain) { return; } - auto * p = (struct llama_sampler_chain *) chain->ctx; + auto * ctx = (struct llama_sampler_chain *) chain->ctx; - p->t_sample_us = p->n_sample = 0; + ctx->t_sample_us = ctx->n_sample = 0; }