TODO make all command line args case-insensitive
| 1856 | |
| 1857 | // TODO make all command line args case-insensitive |
| 1858 | static inline bool eq_case_insensitive(char const* a, char const* b) { |
| 1859 | return ! |
| 1860 | #if defined(_MSC_VER) |
| 1861 | _stricmp |
| 1862 | #else |
| 1863 | strcasecmp |
| 1864 | #endif // defined(_MSC_VER) |
| 1865 | (a, b); |
| 1866 | } |
| 1867 | |
| 1868 | enum ggml_opt_optimizer_type common_opt_get_optimizer(const char * n) { |
| 1869 | if (eq_case_insensitive("adamw", n)) { |
no outgoing calls
no test coverage detected