MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / common_opt_get_optimizer

Function common_opt_get_optimizer

common/common.cpp:1868–1876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1866}
1867
1868enum ggml_opt_optimizer_type common_opt_get_optimizer(const char * n) {
1869 if (eq_case_insensitive("adamw", n)) {
1870 return GGML_OPT_OPTIMIZER_TYPE_ADAMW;
1871 }
1872 if (eq_case_insensitive("sgd", n)) {
1873 return GGML_OPT_OPTIMIZER_TYPE_SGD;
1874 }
1875 return GGML_OPT_OPTIMIZER_TYPE_COUNT;
1876}
1877
1878// TODO simplify to use just log and exp
1879static float const k_log_2 = std::log(2.f);

Callers 1

Calls 1

eq_case_insensitiveFunction · 0.85

Tested by

no test coverage detected