]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
llama : well-defined static initialization of complex objects (#927)
authorArik Poznanski <redacted>
Mon, 17 Apr 2023 14:41:53 +0000 (17:41 +0300)
committerGitHub <redacted>
Mon, 17 Apr 2023 14:41:53 +0000 (17:41 +0300)
commitefd05648c88a0923a55f56e7ce1b0f9c33410afb
treeab3ba2322a5368c73f208a9fb110e01bb7db3721
parenteb17a026fd23d1c1b612fa4600f7f5c58e501a28
llama : well-defined static initialization of complex objects (#927)

* Replaced static initialization of complex objects with a initialization on first use. This prevents an undefined behavior on program run, for example, crash in Release build, works in Debug build

* replaced use of auto with exact type to avoid using -std=c++14

* Made the assessors functions for static maps be static const
llama.cpp
tests/test-tokenizer-0.cpp