Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose type name from ggml #970

Merged
merged 1 commit into from
Apr 14, 2023
Merged

Expose type name from ggml #970

merged 1 commit into from
Apr 14, 2023

Conversation

prusnak
Copy link
Collaborator

@prusnak prusnak commented Apr 14, 2023

Avoid duplication of type names in utils

Extracted from PR #953 by @unbounded

Avoid duplication of type names in utils
@@ -16,9 +16,6 @@
#include <unordered_map>
#include <vector>

static const char * type_strs[] = { "q4_0", "q4_1", "i8", "i16", "i32", "f16", "f32" };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just in case anyone wonders, this ordering was a bug I introduced in #709. Thanks to designated initalizers being allowed in C11, this should not happen in the future.

@prusnak prusnak merged commit c56b715 into master Apr 14, 2023
@prusnak prusnak deleted the ggml-type-name branch April 14, 2023 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants