We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b1bf1f commit ead2bc6Copy full SHA for ead2bc6
gpt4all-backend/llmodel.cpp
@@ -77,10 +77,10 @@ bool LLModel::Implementation::isImplementation(const Dlhandle &dl) {
77
return dl.get<bool(uint32_t)>("is_g4a_backend_model_implementation");
78
}
79
80
-static std::vector<std::unique_ptr<LLModel::Implementation>> s_impl_libs;
81
static bool s_scanned = false;
82
83
const std::vector<std::unique_ptr<LLModel::Implementation>> &LLModel::Implementation::implementationList() {
+ static std::vector<std::unique_ptr<LLModel::Implementation>> s_impl_libs;
84
// NOTE: allocated on heap so we leak intentionally on exit so we have a chance to clean up the
85
// individual models without the cleanup of the static list interfering
86
if(!s_scanned) {
0 commit comments