Преглед изворни кода

llama : fix t_start_sample_us initialization warning (#2238)

Alex Klinkhamer пре 2 година
родитељ
комит
b7647436cc
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      llama.cpp

+ 1 - 1
llama.cpp

@@ -2205,7 +2205,7 @@ void llama_sample_classifier_free_guidance(
           struct llama_context * guidance_ctx,
           struct llama_context * guidance_ctx,
                          float   scale,
                          float   scale,
                          float   smooth_factor) {
                          float   smooth_factor) {
-    int64_t t_start_sample_us = t_start_sample_us = ggml_time_us();
+    int64_t t_start_sample_us = ggml_time_us();
 
 
     assert(ctx);
     assert(ctx);
     auto n_vocab = llama_n_vocab(ctx);
     auto n_vocab = llama_n_vocab(ctx);