chore: silence narrowing conversion warnings (#1717)

This commit is contained in:
leejet authored and GitHub committed 2026-06-28 23:14:53 +08:00
1 parent 7b5f34d93e
commit 9f855c933b
4 files changed
+19 -22

No files matched your search

+2 -2
View File
@@ -602,7 +602,7 @@ struct LogitNormalScheduler : SigmaScheduler {
}
}
if (image_seq_len > 0 && resolution_aware) {
mean += 0.5 * std::log(static_cast<float>(image_seq_len) / static_cast<float>(known_seq_len));
mean += 0.5f * std::log(static_cast<float>(image_seq_len) / static_cast<float>(known_seq_len));
}
}
@@ -735,7 +735,7 @@ struct LogitNormalScheduler : SigmaScheduler {
float t = static_cast<float>(i) / static_cast<float>(n);
// ndtri(1-t) == -ndtri(t)
float z = -ndtri(t);
float z = static_cast<float>(-ndtri(t));
float y = mean + std * z;