aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/embedding/embedding.cpp2
-rw-r--r--examples/main/main.cpp1
-rw-r--r--examples/perplexity/perplexity.cpp1
3 files changed, 4 insertions, 0 deletions
diff --git a/examples/embedding/embedding.cpp b/examples/embedding/embedding.cpp
index 2eda3ac..e10de61 100644
--- a/examples/embedding/embedding.cpp
+++ b/examples/embedding/embedding.cpp
@@ -1,6 +1,8 @@
#include "common.h"
#include "llama.h"
+#include <ctime>
+
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 ba153cb..3e4b003 100644
--- a/examples/main/main.cpp
+++ b/examples/main/main.cpp
@@ -11,6 +11,7 @@
#include <cmath>
#include <cstdio>
#include <cstring>
+#include <ctime>
#include <fstream>
#include <iostream>
#include <string>
diff --git a/examples/perplexity/perplexity.cpp b/examples/perplexity/perplexity.cpp
index 38e3643..19449e1 100644
--- a/examples/perplexity/perplexity.cpp
+++ b/examples/perplexity/perplexity.cpp
@@ -2,6 +2,7 @@
#include "llama.h"
#include <cmath>
+#include <ctime>
std::vector<float> softmax(const std::vector<float>& logits) {
std::vector<float> probs(logits.size());