From 39aa3ebbe35d5875e6a63f7b3cf60b61b6bd856b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=A1vio=20Pontes?= Date: Wed, 6 Sep 2023 12:44:48 +0300 Subject: [PATCH] [FIX] Integer Division by zero on Windows build --- sam.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sam.cpp b/sam.cpp index 555e51e..b40b1af 100644 --- a/sam.cpp +++ b/sam.cpp @@ -1953,6 +1953,7 @@ struct ggml_cgraph * sam_build_fast_graph( } std::shared_ptr sam_load_model(const sam_params & params) { + ggml_time_init(); const int64_t t_start_ms = ggml_time_ms(); sam_state state;