fix: only enable TAE after successful load (#1517)

This commit is contained in:
leejet 2026-05-18 23:32:03 +08:00 committed by GitHub
parent f683c88a28
commit b758b7de13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -327,8 +327,9 @@ public:
LOG_INFO("loading tae from '%s'", sd_ctx_params->taesd_path);
if (!model_loader.init_from_file(sd_ctx_params->taesd_path, "tae.")) {
LOG_WARN("loading tae from '%s' failed", sd_ctx_params->taesd_path);
} else {
use_tae = true;
}
use_tae = true;
}
if (strlen(SAFE_STR(sd_ctx_params->embeddings_connectors_path)) > 0) {