mirror of
https://github.com/ravenscroftj/turbopilot.git
synced 2024-09-29 20:25:56 +00:00
use std mutex instead of boost mutex
This commit is contained in:
parent
143155dac3
commit
ae2d505a2f
@ -7,7 +7,7 @@
|
|||||||
#include <map>
|
#include <map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <random>
|
#include <random>
|
||||||
#include <boost/thread.hpp>
|
#include <mutex>
|
||||||
|
|
||||||
typedef void (*offload_func_t)(struct ggml_tensor * tensor);
|
typedef void (*offload_func_t)(struct ggml_tensor * tensor);
|
||||||
void ggml_nop(struct ggml_tensor * tensor);
|
void ggml_nop(struct ggml_tensor * tensor);
|
||||||
@ -64,7 +64,7 @@ protected:
|
|||||||
virtual std::stringstream predict_impl(std::string prompt, int max_length, bool include_prompt) = 0;
|
virtual std::stringstream predict_impl(std::string prompt, int max_length, bool include_prompt) = 0;
|
||||||
ModelConfig config;
|
ModelConfig config;
|
||||||
std::mt19937 &rng;
|
std::mt19937 &rng;
|
||||||
boost::mutex model_lock;
|
std::mutex model_lock;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //__TURBOPILOT_MODEL_H
|
#endif //__TURBOPILOT_MODEL_H
|
Loading…
Reference in New Issue
Block a user