diff --git a/otherarch/sdcpp/sdtype_adapter.cpp b/otherarch/sdcpp/sdtype_adapter.cpp index 1d9a5c9eb69f..42cd1fb6afe1 100644 --- a/otherarch/sdcpp/sdtype_adapter.cpp +++ b/otherarch/sdcpp/sdtype_adapter.cpp @@ -35,6 +35,9 @@ // #define STB_IMAGE_RESIZE_IMPLEMENTATION //already defined in llava #include "stb_image_resize.h" +static_assert((int)SD_TYPE_COUNT == (int)GGML_TYPE_COUNT, + "inconsistency between SD_TYPE_COUNT and GGML_TYPE_COUNT"); + enum SDMode { TXT2IMG, IMG2IMG, diff --git a/otherarch/sdcpp/stable-diffusion.h b/otherarch/sdcpp/stable-diffusion.h index fc0cd75e9069..9d4fcda6e45a 100644 --- a/otherarch/sdcpp/stable-diffusion.h +++ b/otherarch/sdcpp/stable-diffusion.h @@ -100,7 +100,7 @@ enum sd_type_t { SD_TYPE_IQ4_NL_4_4 = 36, // SD_TYPE_IQ4_NL_4_8 = 37, // SD_TYPE_IQ4_NL_8_8 = 38, - SD_TYPE_COUNT = 39, + SD_TYPE_COUNT = 40, }; SD_API const char* sd_type_name(enum sd_type_t type);