fix: fix race condition causing inconsistent value for decoder_only (#609)

This commit is contained in:
stduhpf 2025-03-01 04:49:06 +01:00 committed by GitHub
parent 85e9a12988
commit f50a7f66aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -201,7 +201,7 @@ struct TinyAutoEncoder : public GGMLRunner {
bool decoder_only = true,
SDVersion version = VERSION_SD1)
: decode_only(decoder_only),
taesd(decode_only, version),
taesd(decoder_only, version),
GGMLRunner(backend) {
taesd.init(params_ctx, tensor_types, prefix);
}