From: Pavol Rusnak Date: Sun, 16 Apr 2023 10:13:00 +0000 (+0200) Subject: examples: add missing include for time() (#1011) X-Git-Tag: gguf-v0.4.0~944 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=489537e6cf6c93b74a029a11533dbcaa89791dcc;p=pkg%2Fggml%2Fsources%2Fllama.cpp examples: add missing include for time() (#1011) --- diff --git a/examples/embedding/embedding.cpp b/examples/embedding/embedding.cpp index 2eda3ac0..e10de619 100644 --- a/examples/embedding/embedding.cpp +++ b/examples/embedding/embedding.cpp @@ -1,6 +1,8 @@ #include "common.h" #include "llama.h" +#include + int main(int argc, char ** argv) { gpt_params params; params.model = "models/llama-7B/ggml-model.bin"; diff --git a/examples/main/main.cpp b/examples/main/main.cpp index ba153cb8..3e4b0034 100644 --- a/examples/main/main.cpp +++ b/examples/main/main.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include diff --git a/examples/perplexity/perplexity.cpp b/examples/perplexity/perplexity.cpp index 38e3643b..19449e16 100644 --- a/examples/perplexity/perplexity.cpp +++ b/examples/perplexity/perplexity.cpp @@ -2,6 +2,7 @@ #include "llama.h" #include +#include std::vector softmax(const std::vector& logits) { std::vector probs(logits.size());