We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f88bb9e commit aac2c21Copy full SHA for aac2c21
stable-diffusion.cpp
@@ -304,9 +304,9 @@ class StableDiffusionGGML {
304
}
305
306
LOG_INFO("Version: %s ", model_version_to_str[version]);
307
- ggml_type wtype = (int)sd_ctx_params->wtype < std::min<int>(SD_TYPE_COUNT, GGML_TYPE_COUNT)
308
- ? (ggml_type)sd_ctx_params->wtype
309
- : GGML_TYPE_COUNT;
+ ggml_type wtype = (int)sd_ctx_params->wtype < std::min<int>(SD_TYPE_COUNT, GGML_TYPE_COUNT)
+ ? (ggml_type)sd_ctx_params->wtype
+ : GGML_TYPE_COUNT;
310
std::string tensor_type_rules = SAFE_STR(sd_ctx_params->tensor_type_rules);
311
if (wtype != GGML_TYPE_COUNT || tensor_type_rules.size() > 0) {
312
model_loader.set_wtype_override(wtype, tensor_type_rules);
0 commit comments